mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 04:29:29 +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
|
esac
|
||||||
|
|
||||||
# enable color support of ls and also add handy aliases
|
|
||||||
if hash dircolors 2> /dev/null; then
|
if hash dircolors 2> /dev/null; then
|
||||||
#test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
#test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||||
eval $(dircolors --bourne-shell)
|
eval $(dircolors --bourne-shell)
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias dir='dir --color=auto'
|
|
||||||
alias vdir='vdir --color=auto'
|
|
||||||
fi
|
fi
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias fgrep='grep -F --color=auto'
|
alias fgrep='grep -F --color=auto'
|
||||||
@ -255,8 +251,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# OS X ls colours (copied from https://apple.stackexchange.com/questions/33677/
|
# OS X ls colours (copied from https://apple.stackexchange.com/questions/33677/
|
||||||
export CLICOLOR=1
|
#export CLICOLOR=1
|
||||||
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
#export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||||
|
|
||||||
# znc uses this variable for figuring out hostname
|
# znc uses this variable for figuring out hostname
|
||||||
#export HOSTNAME=$(hostname --fqdn)
|
#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
|
if hash dircolors 2> /dev/null; then
|
||||||
eval $(dircolors --bourne-shell)
|
eval $(dircolors --bourne-shell)
|
||||||
|
#alias ls='ls --color=auto'
|
||||||
|
#alias dir='dir --color=auto'
|
||||||
|
#alias vdir='vdir --color=auto'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##### Environment 7RS56S #####
|
##### Environment 7RS56S #####
|
||||||
@ -209,8 +212,8 @@ fi
|
|||||||
#fi
|
#fi
|
||||||
|
|
||||||
# OS X ls colours (copied from https://apple.stackexchange.com/questions/33677/
|
# OS X ls colours (copied from https://apple.stackexchange.com/questions/33677/
|
||||||
export CLICOLOR=1
|
#export CLICOLOR=1
|
||||||
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
#export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
|
||||||
|
|
||||||
# znc uses this variable for figuring out hostname
|
# znc uses this variable for figuring out hostname
|
||||||
#export HOSTNAME=$(hostname --fqdn)
|
#export HOSTNAME=$(hostname --fqdn)
|
||||||
@ -349,9 +352,9 @@ alias theme="prompt "
|
|||||||
|
|
||||||
## -- Start of aliases which are saved from Ubuntu default bashrc. --
|
## -- Start of aliases which are saved from Ubuntu default bashrc. --
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
#alias ls='ls --color=auto'
|
||||||
alias dir='dir --color=auto'
|
#alias dir='dir --color=auto'
|
||||||
alias vdir='vdir --color=auto'
|
#alias vdir='vdir --color=auto'
|
||||||
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias fgrep='fgrep -F --color=auto'
|
alias fgrep='fgrep -F --color=auto'
|
||||||
|
Loading…
Reference in New Issue
Block a user