Add bash files

This commit is contained in:
2019-10-16 10:30:01 +00:00
parent 6743300e44
commit d2aeed8d03
6 changed files with 208 additions and 0 deletions

17
bashrc.d/fzf.bash Normal file
View File

@@ -0,0 +1,17 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/paul/.fzf/bin* ]]; then
export PATH="${PATH:+${PATH}:}/home/paul/.fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/home/paul/.fzf/shell/completion.bash" 2> /dev/null
export FZF_DEFAULT_COMMAND='fd --type f --color=never'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND='fd --type d . --color=never'
# Key bindings
# ------------
source "/home/paul/.fzf/shell/key-bindings.bash"