diff --git a/.bash_aliases b/.bash_aliases index 825f6f3..b7cea47 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -25,9 +25,12 @@ eval "$(dircolors)" alias ls='ls --color=auto' alias ll='ls $LS_OPTIONS -l --all' alias l='ls $LS_OPTIONS --color=always --almost-all' + which bat >/dev/null 2>&1 || alias bat="$(which batcat >/dev/null 2>&1 && echo batcat || echo less -FX)" b() { test -d "${1:-.}" && l "$@" || bat "$@"; } + alias v="$(which nvim >/dev/null 2>&1 && echo nvim || echo ${EDITOR:-vi})" +alias h=man # Grep aliases