add grep aliases, please shellcheck

This commit is contained in:
2024-01-21 21:18:49 +01:00
parent ee68ec34c2
commit 6dbd254992

View File

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