fix fzf preview error
This commit is contained in:
parent
7f060f5527
commit
19512334b3
|
|
@ -20,6 +20,5 @@ zstyle ':fzf-tab:complete:git-(add|diff|restore):*' fzf-preview 'git diff --colo
|
||||||
zstyle ':fzf-tab:complete:git-log:*' fzf-preview 'git log --color=always $word'
|
zstyle ':fzf-tab:complete:git-log:*' fzf-preview 'git log --color=always $word'
|
||||||
zstyle ':fzf-tab:complete:git-show:*' fzf-preview 'git show --color=always $word'
|
zstyle ':fzf-tab:complete:git-show:*' fzf-preview 'git show --color=always $word'
|
||||||
zstyle ':fzf-tab:complete:git-checkout:*' fzf-preview '[ -f "$realpath" ] && git diff --color=always $word || git log --color=always $word'
|
zstyle ':fzf-tab:complete:git-checkout:*' fzf-preview '[ -f "$realpath" ] && git diff --color=always $word || git log --color=always $word'
|
||||||
zstyle ':fzf-tab:complete:*:*' fzf-preview 'less ${(Q)realpath}'
|
zstyle ':fzf-tab:complete:*:*' fzf-preview 'bash $OMZ/lib/file_preview.sh ${(Q)realpath}'
|
||||||
zstyle ':fzf-tab:complete:*:*' fzf-flags --height=12
|
zstyle ':fzf-tab:complete:*:*' fzf-flags --height=12
|
||||||
export LESSOPEN='| bash $OMZ/lib/file_preview.sh %s'
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue