addet fzf
This commit is contained in:
parent
99895d1942
commit
d1ff089733
1 changed files with 11 additions and 11 deletions
22
.bashrc
22
.bashrc
|
@ -92,17 +92,6 @@ _defaults_() {
|
|||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# ─< check if command exists >────────────────────────────────────────────────────────────
|
||||
|
@ -227,6 +216,17 @@ _cli_qol_() {
|
|||
else
|
||||
curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/bin/
|
||||
fi
|
||||
|
||||
# ─< Setup fzf >──────────────────────────────────────────────────────────────────────────
|
||||
if [[ ! "$PATH" == */usr/share/doc/fzf/examples* ]]; then
|
||||
export PATH="${PATH:+${PATH}:}/usr/share/doc/fzf/examples"
|
||||
fi
|
||||
|
||||
# ─< Auto-completion >────────────────────────────────────────────────────────────────────
|
||||
[[ $- == *i* ]] && source "/usr/share/doc/fzf/examples/completion.bash" 2> /dev/null
|
||||
|
||||
# ─< Key bindings >───────────────────────────────────────────────────────────────────────
|
||||
source "/usr/share/doc/fzf/examples/key-bindings.bash"
|
||||
}
|
||||
|
||||
# ─< t stands for trash(-cli) >───────────────────────────────────────────────────────────────
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue