don't hardcode home directory path
This commit is contained in:
parent
486c785523
commit
09f3fb389a
6 changed files with 22 additions and 21 deletions
|
@ -35,14 +35,14 @@ _fzf_comprun() {
|
|||
|
||||
# Setup fzf
|
||||
# ---------
|
||||
if [[ ! "$PATH" == */home/pim/repos/fzf/bin* ]]; then
|
||||
PATH="${PATH:+${PATH}:}/home/pim/repos/fzf/bin"
|
||||
if [[ ! "$PATH" == *~/repos/fzf/bin* ]]; then
|
||||
PATH="${PATH:+${PATH}:}~/repos/fzf/bin"
|
||||
fi
|
||||
|
||||
# Auto-completion
|
||||
# ---------------
|
||||
[[ $- == *i* ]] && source "/home/pim/repos/fzf/shell/completion.bash" 2> /dev/null
|
||||
[[ $- == *i* ]] && source "~/repos/fzf/shell/completion.bash" 2> /dev/null
|
||||
|
||||
# Key bindings
|
||||
# ------------
|
||||
source "/home/pim/repos/fzf/shell/key-bindings.bash"
|
||||
source "~/repos/fzf/shell/key-bindings.bash"
|
||||
|
|
Reference in a new issue