Skip to content
Myr

[install] Fix #414 - Respect $ZDOTDIR

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent e99731e · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:install+3 added-2 removed
340 unmodified lines
341}342343echo344for shell in bash zsh; do345 [ $shell = zsh ] && dest=${ZDOTDIR:-~}/.zshrc || dest=~/.bashrc345 append_line $update_config "[ -f ~/.fzf.${shell} ] && source ~/.fzf.${shell}" ~/.${shell}rc "~/.fzf.${shell}"346 append_line $update_config "[ -f ~/.fzf.${shell} ] && source ~/.fzf.${shell}" "$dest" "~/.fzf.${shell}"347done348349if [ $key_bindings -eq 1 -a $has_fish -eq 1 ]; then350 bind_file=~/.config/fish/functions/fish_user_key_bindings.fish
2 unmodified lines
353354cat << EOF355Finished. Restart your shell or reload config file.356 source ~/.bashrc # bash356 source ~/.zshrc # zsh357 source ${ZDOTDIR:-~}/.zshrc # zsh358EOF359[ $has_fish -eq 1 ] && echo " fzf_key_bindings # fish"; cat << EOF360361Use uninstall script to remove fzf.
4 unmodified lines