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