parent
c64dd0a44d
commit
707f2aac93
|
|
@ -4,7 +4,8 @@ about-alias 'general aliases'
|
||||||
if ls --color -d . &> /dev/null
|
if ls --color -d . &> /dev/null
|
||||||
then
|
then
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
else
|
elif ls -G -d . &> /dev/null
|
||||||
|
then
|
||||||
alias ls='ls -G' # Compact view, show colors
|
alias ls='ls -G' # Compact view, show colors
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -18,8 +19,13 @@ alias l1='ls -1'
|
||||||
alias _="sudo"
|
alias _="sudo"
|
||||||
|
|
||||||
# colored grep
|
# colored grep
|
||||||
alias grep='grep --color=auto'
|
# Need to check an existing file for a pattern that will be found to ensure
|
||||||
export GREP_COLOR='1;33'
|
# that the check works when on an OS that supports the color option
|
||||||
|
if grep --color=auto "a" $BASH_IT/*.md &> /dev/null
|
||||||
|
then
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
export GREP_COLOR='1;33'
|
||||||
|
fi
|
||||||
|
|
||||||
which gshuf &> /dev/null
|
which gshuf &> /dev/null
|
||||||
if [ $? -eq 0 ]
|
if [ $? -eq 0 ]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue