(bashrc) added default options for fzf

This commit is contained in:
zegonix
2026-01-14 15:03:00 +01:00
committed by scbj
parent ced2e2b7c7
commit e4a1c4a142

View File

@@ -40,12 +40,15 @@ else
alias list='ls -hal --color=auto'
fi
# aliases related to `grep`
if $(which ug &>/dev/null); then
alias ugi='ug -j'
fi
if $(which rg &>/dev/null); then
alias rg='rg --color=always -n'
alias rgi='rg -i -n -A 1 -B 1 --color=always'
else
alias grep='grep --color=always'
fi
alias grep='grep --color=always'
alias bdiff='diff -uw --color=always'
@@ -111,6 +114,9 @@ for script in ${source_list[@]}; do
fi
done
# configure `fzf` (fuzzy finder)
export FZF_DEFAULT_OPTS='--style default'
# disable terminal flow control (XON/XOFF) -> disable `C-s/C-q` keybindings
# this way the keybindings can be used for other purposes
if [[ -t 0 && $- = *i* ]]; then