mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-09 18:19:23 +01:00
{bash,zsh}rc: cleanup ls aliases a bit
This commit is contained in:
parent
c82943b61b
commit
7bfc1d75ad
@ -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)
|
||||
|
13
rc/zshrc
13
rc/zshrc
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user