python alias and fzf alias
This commit is contained in:
11
zsh/alias/fzf_alias.sh
Normal file
11
zsh/alias/fzf_alias.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
eval "$(fzf --zsh)"
|
||||
|
||||
if [[ -z "$FZF_DEFAULT_COMMAND" ]]; then
|
||||
if (( $+commands[fd] )); then
|
||||
export FZF_DEFAULT_COMMAND='fd --type f --hidden --exclude .git'
|
||||
elif (( $+commands[rg] )); then
|
||||
export FZF_DEFAULT_COMMAND='rg --files --hidden --glob "!.git/*"'
|
||||
elif (( $+commands[ag] )); then
|
||||
export FZF_DEFAULT_COMMAND='ag -l --hidden -g "" --ignore .git'
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user