add grep aliases, please shellcheck
This commit is contained in:
@@ -159,6 +159,7 @@ export EDITOR=$VISUAL
|
|||||||
# look for a pdf viewer
|
# look for a pdf viewer
|
||||||
for _pdfviewer in qpdfview atril; do
|
for _pdfviewer in qpdfview atril; do
|
||||||
if hash "$_pdfviewer" 2>/dev/null; then
|
if hash "$_pdfviewer" 2>/dev/null; then
|
||||||
|
# shellcheck disable=SC2139
|
||||||
alias acroread="$_pdfviewer"
|
alias acroread="$_pdfviewer"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -188,7 +189,7 @@ export QUOTING_STYLE=literal
|
|||||||
# avoid these stupid systemd defaults (horizontal scroll and pager)
|
# avoid these stupid systemd defaults (horizontal scroll and pager)
|
||||||
alias systemctl="systemctl --no-pager --full"
|
alias systemctl="systemctl --no-pager --full"
|
||||||
|
|
||||||
# aliases for ls and history
|
# useful aliases/functions
|
||||||
alias l='ls -F'
|
alias l='ls -F'
|
||||||
alias ls='ls -F'
|
alias ls='ls -F'
|
||||||
alias l1='ls -1F'
|
alias l1='ls -1F'
|
||||||
@@ -222,6 +223,10 @@ alias hl="history 25" # long
|
|||||||
alias hll="history 100" # very long
|
alias hll="history 100" # very long
|
||||||
alias hlll="history" # all history
|
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
|
# user temp directory
|
||||||
export USERTMP=~/tmp
|
export USERTMP=~/tmp
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user