all repos — nixfiles @ 92dd640461b7d2cbc5e4e7beacd19783ee43f55c

System and user configuration, managed by nix and home-manager

zsh: customise fzf/anyframe

Alan Pearce
commit

92dd640461b7d2cbc5e4e7beacd19783ee43f55c

parent

f2640eb84768f7130c5d78a4070d121da11dd555

1 file changed, 7 insertions(+), 4 deletions(-)

jump to
M zsh/.config/zsh/.zshrczsh/.config/zsh/.zshrc
@@ -213,13 +213,16 @@ fi
if [[ -n $commands[fzf] ]] then - fp () { - ghq look $(ghq list | fzf +m) - } - zplugin snippet "https://github.com/junegunn/fzf/raw/master/shell/key-bindings.zsh" + export FZF_CTRL_T_COMMAND=' + (git ls-tree -r --name-only HEAD || + fd --hidden --follow --exclude ".git" . | + sed s/^..//) 2> /dev/null' + export FZF_ALT_C_COMMAND='fd --type d --hidden --follow --exclude ".git" .' + export FZF_DEFAULT_COMMAND=$FZF_CTRL_T_COMMAND bindkey '^t' transpose-chars + bindkey '^x^f' fzf-file-widget zstyle ":anyframe:selector:fzf:" command "fzf --height 40%"