Update zsh config

This commit is contained in:
rydesun 2023-08-05 21:56:05 +08:00
parent 1805b3527e
commit aacc2105bf
2 changed files with 7 additions and 5 deletions

View file

@ -2,10 +2,8 @@ typeset -U path PATH
path=($path ~/.bin)
### XDG目录
# 非必要可以不设置成环境变量
XDG_CONFIG_HOME=~/.config
XDG_CACHE_HOME=~/.cache
# 修改位置所以需要export
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache
export XDG_DATA_HOME=~/.data
export XDG_STATE_HOME=~/.state
@ -68,6 +66,9 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export SQLITE_HISTORY="$XDG_DATA_HOME"/sqlite_history
# {{{ 图形环境
# 鼠标主题
export XCURSOR_PATH="$XDG_DATA_HOME"/icons:/usr/share/icons
### Qt
# 无桌面环境用qt5ct配置Qt主题
export QT_QPA_PLATFORMTHEME=qt5ct

3
.zshrc
View file

@ -52,7 +52,8 @@ setopt share_history # 多个实例共享历史记录
setopt hist_ignore_dups # 不记录多条连续重复的历史
setopt hist_reduce_blanks # 删除历史记录中的空行
setopt hist_find_no_dups # 查找历史记录时忽略重复项
setopt hist_ignore_space # 不记录空格开头的命令
setopt hist_ignore_space # 不记录空格开头的命令
setopt extended_history # 记录时间戳
# }}}
# {{{ 插件