shell: dont replace native fzf per default
This commit is contained in:
@@ -48,11 +48,10 @@ export FZF_DEFAULT_OPTS='
|
|||||||
--color=marker:#5c6a72,spinner:#5c6a72,header:#5c6a72'
|
--color=marker:#5c6a72,spinner:#5c6a72,header:#5c6a72'
|
||||||
|
|
||||||
if [[ -d ~/.vim/plugged/fzf ]]; then
|
if [[ -d ~/.vim/plugged/fzf ]]; then
|
||||||
|
[[ -x $(which fzf 2> /dev/null )]] || PATH=$PATH:$HOME/.vim/plugged/fzf/bin
|
||||||
source ~/.vim/plugged/fzf/shell/completion.bash
|
source ~/.vim/plugged/fzf/shell/completion.bash
|
||||||
source ~/.vim/plugged/fzf/shell/key-bindings.bash
|
source ~/.vim/plugged/fzf/shell/key-bindings.bash
|
||||||
bind '"":"fzf-file-widget\n"'
|
bind '"":"fzf-file-widget\n"'
|
||||||
else
|
|
||||||
bindkey '^R' history-incremental-search-backward
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ============================== Source other definitions
|
# ============================== Source other definitions
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# zsh specific
|
# zsh specific
|
||||||
if [[ "$SHELL" =~ "zsh$" ]]; then
|
if [[ "$SHELL" =~ "zsh$" ]]; then
|
||||||
alias -g G='| grep -i'
|
alias -g G='| rg -i'
|
||||||
alias -g L='| less'
|
alias -g L='| less'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,6 @@ RPS2=$RPS1
|
|||||||
bindkey -v '^?' backward-delete-char
|
bindkey -v '^?' backward-delete-char
|
||||||
|
|
||||||
# ============================== fzf
|
# ============================== fzf
|
||||||
# export FZF_DEFAULT_COMMAND='fd .'
|
|
||||||
export FZF_DEFAULT_OPTS='
|
export FZF_DEFAULT_OPTS='
|
||||||
--layout=reverse
|
--layout=reverse
|
||||||
--color=fg:#5c6a72,bg:#FDF6E3,hl:#8da101
|
--color=fg:#5c6a72,bg:#FDF6E3,hl:#8da101
|
||||||
@@ -93,11 +92,10 @@ export FZF_DEFAULT_OPTS='
|
|||||||
--color=marker:#5c6a72,spinner:#5c6a72,header:#5c6a72'
|
--color=marker:#5c6a72,spinner:#5c6a72,header:#5c6a72'
|
||||||
|
|
||||||
if [[ -d ~/.vim/plugged/fzf ]]; then
|
if [[ -d ~/.vim/plugged/fzf ]]; then
|
||||||
|
[[ -x $(which fzf 2> /dev/null) ]] || PATH=$PATH:$HOME/.vim/plugged/fzf/bin
|
||||||
source ~/.vim/plugged/fzf/shell/completion.zsh
|
source ~/.vim/plugged/fzf/shell/completion.zsh
|
||||||
source ~/.vim/plugged/fzf/shell/key-bindings.zsh
|
source ~/.vim/plugged/fzf/shell/key-bindings.zsh
|
||||||
bindkey '^F' fzf-file-widget
|
bindkey '^F' fzf-file-widget
|
||||||
else
|
|
||||||
bindkey '^R' history-incremental-search-backward
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ============================== Fancy Hacks
|
# ============================== Fancy Hacks
|
||||||
|
|||||||
Reference in New Issue
Block a user