bash_aliases: alias h to man
This commit is contained in:
parent
25710c7bca
commit
33a47f8460
|
@ -25,9 +25,12 @@ eval "$(dircolors)"
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias ll='ls $LS_OPTIONS -l --all'
|
alias ll='ls $LS_OPTIONS -l --all'
|
||||||
alias l='ls $LS_OPTIONS --color=always --almost-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)"
|
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 "$@"; }
|
b() { test -d "${1:-.}" && l "$@" || bat "$@"; }
|
||||||
|
|
||||||
alias v="$(which nvim >/dev/null 2>&1 && echo nvim || echo ${EDITOR:-vi})"
|
alias v="$(which nvim >/dev/null 2>&1 && echo nvim || echo ${EDITOR:-vi})"
|
||||||
|
alias h=man
|
||||||
|
|
||||||
# Grep aliases
|
# Grep aliases
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue