Skip to content

Commit

Permalink
zsh: change fzf ctrl+t to output dirs only
Browse files Browse the repository at this point in the history
Hunting and pecking by hand has gotten tedious.

See: BurntSushi/ripgrep#388 (comment)
  • Loading branch information
bhalash committed Jun 16, 2021
1 parent 4b8d7d3 commit dda3539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ fi
# export FZF_DEFAULT_OPTS='--preview "cat {}"'
export FZF_PATH="${HOME}/.fzf.zsh"
export FZF_DEFAULT_COMMAND='rg --files --follow'
export FZF_CTRL_T_COMMAND='rg --files --follow'
export FZF_CTRL_T_COMMAND='rg --files --null | xargs -0 dirname | uniq'

if [[ -f $FZF_PATH ]]; then
source $FZF_PATH
Expand Down

0 comments on commit dda3539

Please sign in to comment.