bash_aliases: alias h to man

This commit is contained in:
xeruf 2023-01-04 05:33:49 +01:00
parent 25710c7bca
commit 33a47f8460
1 changed files with 3 additions and 0 deletions

View File

@ -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