From 44e9d4f11b0faa788b484ea9e08dbf79cdb125fc Mon Sep 17 00:00:00 2001 From: chenyc Date: Thu, 17 Nov 2022 13:59:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20file=5Fpreview=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=9D=83=E9=99=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/fzf.zsh | 2 +- lib/file_preview.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 lib/file_preview.sh diff --git a/config/fzf.zsh b/config/fzf.zsh index 9165c5c..62e53e0 100644 --- a/config/fzf.zsh +++ b/config/fzf.zsh @@ -2,7 +2,7 @@ alias fzf='fzf --preview "bat -p --color=always {} | head -100" --height 40%' export FZF_DEFAULT_OPTS="--height 50% --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='$OMZ/lib/file_preview.sh {}' +export FZF_PREVIEW_COMMAND='bash $OMZ/lib/file_preview.sh {}' zstyle ':completion:complete:*:options' sort false zstyle ':fzf-tab:complete:_zlua:*' query-string input diff --git a/lib/file_preview.sh b/lib/file_preview.sh old mode 100644 new mode 100755