feat(bash): added bash config
This commit is contained in:
6
bash/dot-bashrc
Normal file
6
bash/dot-bashrc
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# FZF
|
||||||
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
|
||||||
|
# GHQ and FZF
|
||||||
|
alias ghqcd="cd \$(ghq list --full-path | fzf)"
|
||||||
|
|
||||||
13
bash/dot-fzf.bash
Normal file
13
bash/dot-fzf.bash
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Setup fzf
|
||||||
|
# ---------
|
||||||
|
if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then
|
||||||
|
export PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Auto-completion
|
||||||
|
# ---------------
|
||||||
|
[[ $- == *i* ]] && source "/opt/homebrew/opt/fzf/shell/completion.bash" 2> /dev/null
|
||||||
|
|
||||||
|
# Key bindings
|
||||||
|
# ------------
|
||||||
|
source "/opt/homebrew/opt/fzf/shell/key-bindings.bash"
|
||||||
Reference in New Issue
Block a user