Files
dotfiles/.zsh.d/20-aliases.zsh
Simonas Narbutas 8268bdc934 add macbook vim/zsh initial
Change-Id: I3e492fecfb97756ab0f5d41bd6931cdfabfd51a2
2018-07-09 17:10:20 +02:00

20 lines
357 B
Bash

if ls --color=auto >&/dev/null; then
alias ls='ls -F --color=auto'
else
alias ls='ls -F'
fi
alias ll='ls -ltrh'
if grep --color=auto >&/dev/null; then
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
fi
if which vim > /dev/null; then
alias vi='vim'
fi
alias find='noglob find'
alias git='noglob git'
alias history='history -100'