修复fzf更新带来的字符乱码问题
This commit is contained in:
parent
d64f77acd4
commit
a2841ec686
|
|
@ -1,3 +1,4 @@
|
|||
export RUNEWIDTH_EASTASIAN=0
|
||||
export FZF_DEFAULT_OPTS="--height 12 --layout=reverse --history=$OMZ/cache/fzfhistory"
|
||||
export FZF_DEFAULT_COMMAND="fd --exclude={.git,.idea,.vscode,.sass-cache,node_modules,build,dist,vendor} --type f"
|
||||
export FZF_PREVIEW_COMMAND='bash $OMZ/lib/file_preview.sh {}'
|
||||
|
|
@ -11,7 +12,8 @@ zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w
|
|||
zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-preview '[ "$group" = "process ID" ] && ps --pid=$word -o cmd --no-headers -w -w'
|
||||
zstyle ':fzf-tab:complete:(kill|ps):argument-rest' fzf-flags --preview-window=down:3:wrap
|
||||
zstyle ':fzf-tab:complete:systemctl-*:*' fzf-preview 'SYSTEMD_COLORS=1 systemctl status $word'
|
||||
zstyle ':fzf-tab:complete:(yay|pacman):*' fzf-preview 'yay -Ss $word'
|
||||
zstyle ':fzf-tab:complete:yay:*' fzf-preview 'yay -Qi $word || yay -Si $word'
|
||||
zstyle ':fzf-tab:complete:pacman:*' fzf-preview 'pacman -Qi $word || pacman -Si $word'
|
||||
zstyle ':fzf-tab:complete:(\\|)run-help:*' fzf-preview 'run-help $word'
|
||||
zstyle ':fzf-tab:complete:(\\|*/|)man:*' fzf-preview 'man $word'
|
||||
zstyle ':fzf-tab:complete:git-(add|diff|restore):*' fzf-preview 'git diff --color=always $word'
|
||||
|
|
|
|||
Loading…
Reference in New Issue