mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 22:27:41 +00:00
Check before sourcing, no longer need to remove
This commit is contained in:
parent
77592825f0
commit
990fa00660
2
install
2
install
@ -353,7 +353,7 @@ append_line() {
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
for shell in bash zsh; do
|
for shell in bash zsh; do
|
||||||
append_line "source ~/.fzf.${shell}" ~/.${shell}rc "~/.fzf.${shell}"
|
append_line "[ -f ~/.fzf.${shell} ] && source ~/.fzf.${shell}" ~/.${shell}rc "~/.fzf.${shell}"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $key_bindings -eq 0 -a $has_fish -eq 1 ]; then
|
if [ $key_bindings -eq 0 -a $has_fish -eq 1 ]; then
|
||||||
|
@ -50,7 +50,7 @@ remove_line() {
|
|||||||
|
|
||||||
for shell in bash zsh; do
|
for shell in bash zsh; do
|
||||||
remove ~/.fzf.${shell}
|
remove ~/.fzf.${shell}
|
||||||
remove_line "source ~/.fzf.${shell}" ~/.${shell}rc
|
# remove_line "source ~/.fzf.${shell}" ~/.${shell}rc
|
||||||
done
|
done
|
||||||
|
|
||||||
bind_file=~/.config/fish/functions/fish_user_key_bindings.fish
|
bind_file=~/.config/fish/functions/fish_user_key_bindings.fish
|
||||||
|
Loading…
Reference in New Issue
Block a user