From 33a47f846094ecfab4fe865ea7bdecc788a7019f Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 4 Jan 2023 05:33:49 +0100 Subject: [PATCH] bash_aliases: alias h to man --- .bash_aliases | 3 +++ 1 file changed, 3 insertions(+) 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