Add exa (ls) preview for FZF alt-c command

This commit is contained in:
Marko Korhonen 2022-11-16 16:30:23 +02:00
parent aa461f98a4
commit b68630e567
No known key found for this signature in database
GPG Key ID: A7F78BCB859CD890

View File

@ -41,6 +41,7 @@ export GOPATH=~/.go
export FD_COMMAND='fd -HLt' export FD_COMMAND='fd -HLt'
export FZF_DEFAULT_COMMAND="$FD_COMMAND f" export FZF_DEFAULT_COMMAND="$FD_COMMAND f"
export FZF_ALT_C_COMMAND="$FD_COMMAND d" export FZF_ALT_C_COMMAND="$FD_COMMAND d"
export FZF_ALT_C_OPTS="--preview 'exa {}'"
export FZF_DEFAULT_OPTS='-m --ansi --bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all' export FZF_DEFAULT_OPTS='-m --ansi --bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all'
export FZF_COMPLETION_TRIGGER='**' export FZF_COMPLETION_TRIGGER='**'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND --strip-cwd-prefix" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND --strip-cwd-prefix"