{bash,zsh}rc: stop forcing colors, case-insentive grep + fix {f,e}grep

This commit is contained in:
Aminda Suomalainen 2024-05-29 15:19:06 +03:00
parent b8566e39f8
commit e4a34dc4f2
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 18 additions and 16 deletions

View File

@ -87,18 +87,18 @@ esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=always'
alias dir='dir --color=always'
alias vdir='vdir --color=always'
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep -i --color=always'
alias fgrep='fgrep -i --color=always'
alias egrep='egrep -i --color=always'
alias grep='grep --color=auto'
alias fgrep='grep -F --color=auto'
alias egrep='grep -E --color=auto'
fi
# some more ls aliases
if [[ $UNAME != Darwin ]]; then
alias ll='ls -alFh --color=always' && alias la='ls -A --color=always' && alias l='ls -CF --color=always'
alias ll='ls -alFh --color=auto' && alias la='ls -A --color=auto' && alias l='ls -CF --color=auto'
fi
if [[ $UNAME == Darwin ]]; then
@ -329,11 +329,11 @@ alias supybot-generate-messages.pot-mass="find . -type d -exec sh -c '(cd {} &&
# enable color support of ls and also add handy aliases
if [[ $UNAME != Darwin ]]; then
alias ls='ls --color=always'
alias ls='ls --color=auto'
fi
# some more ls aliases
if [[ $UNAME != Darwin ]]; then
alias ll='ls -alFh --color=always' && alias la='ls -A --color=always' && alias l='ls -CF --color=always'
alias ll='ls -alFh --color=auto' && alias la='ls -A --color=auto' && alias l='ls -CF --color=auto'
fi
## -- End of aliases which are saved from Ubuntu default bashrc. --

View File

@ -299,16 +299,18 @@ alias theme="prompt "
# enable color support of ls and also add handy aliases
if [[ $UNAME != Darwin ]]; then
alias ls='ls --color=always'
alias ls='ls --color=auto'
fi
alias dir='dir --color=always'
alias vdir='vdir --color=always'
alias grep='grep -i --color=always'
alias fgrep='fgrep -i --color=always'
alias egrep='egrep -i --color=always'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep -F --color=auto'
alias egrep='egrep -E --color=auto'
# some more ls aliases
if [[ "$UNAME" != "Darwin" ]]; then
alias ll='ls -alFh --color=always' && alias la='ls -A --color=always' && alias l='ls -CF --color=always'
alias ll='ls -alFh --color=auto' && alias la='ls -A --color=auto' && alias l='ls -CF --color=auto'
fi
if [[ $UNAME = Darwin ]]; then