From 6dbd254992b9e098edfd5c4feee3e054f80f163a Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Sun, 21 Jan 2024 21:18:49 +0100 Subject: [PATCH] add grep aliases, please shellcheck --- config/home/bashrc.br | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/home/bashrc.br b/config/home/bashrc.br index 6fa4880..670b4de 100644 --- a/config/home/bashrc.br +++ b/config/home/bashrc.br @@ -159,6 +159,7 @@ export EDITOR=$VISUAL # look for a pdf viewer for _pdfviewer in qpdfview atril; do if hash "$_pdfviewer" 2>/dev/null; then + # shellcheck disable=SC2139 alias acroread="$_pdfviewer" break fi @@ -188,7 +189,7 @@ export QUOTING_STYLE=literal # avoid these stupid systemd defaults (horizontal scroll and pager) alias systemctl="systemctl --no-pager --full" -# aliases for ls and history +# useful aliases/functions alias l='ls -F' alias ls='ls -F' alias l1='ls -1F' @@ -222,6 +223,10 @@ alias hl="history 25" # long alias hll="history 100" # very long alias hlll="history" # all history +alias grep='grep --color=auto' # add colors to grep +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' + # user temp directory export USERTMP=~/tmp