{bash,zsh}rc: cleanup ls aliases a bit

This commit is contained in:
Aminda Suomalainen 2024-08-04 14:07:52 +03:00
parent c82943b61b
commit 7bfc1d75ad
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 10 additions and 11 deletions

View File

@ -97,13 +97,9 @@ case "$TERM" in
*) ;;
esac
# enable color support of ls and also add handy aliases
if hash dircolors 2> /dev/null; then
#test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
eval $(dircolors --bourne-shell)
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
fi
alias grep='grep --color=auto'
alias fgrep='grep -F --color=auto'
@ -255,8 +251,8 @@ else
fi
# OS X ls colours (copied from https://apple.stackexchange.com/questions/33677/
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
#export CLICOLOR=1
#export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# znc uses this variable for figuring out hostname
#export HOSTNAME=$(hostname --fqdn)

View File

@ -132,6 +132,9 @@ zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
if hash dircolors 2> /dev/null; then
eval $(dircolors --bourne-shell)
#alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
fi
##### Environment 7RS56S #####
@ -209,8 +212,8 @@ fi
#fi
# OS X ls colours (copied from https://apple.stackexchange.com/questions/33677/
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
#export CLICOLOR=1
#export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# znc uses this variable for figuring out hostname
#export HOSTNAME=$(hostname --fqdn)
@ -349,9 +352,9 @@ alias theme="prompt "
## -- Start of aliases which are saved from Ubuntu default bashrc. --
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
#alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep -F --color=auto'