theos=$(uname -s) case $theos in "Darwin" ) alias ls='ls -G';; "Linux" ) alias ls='ls --color=auto';; esac alias grep='grep --color -s' alias l='ls -lhatr' #alias ls='ls --color=auto' alias rm='rm -i' # Git stuff alias gdp='git diff --color HEAD^ HEAD' alias gl='git log --pretty=format:"%Cgreen%h %Creset %s %Cgreenby %an (%ar) %Cred %d" --graph' alias gdc='git diff --color' alias gst='git status' alias grp='git remote prune origin' # Docker alias dockerkillall='docker kill $(docker ps -q)' alias dockerdelall='docker rm $(docker ps -qa)' # export standard terminal for remote connections #alias ssh='export TERM=xterm && ssh' alias hexdump='hexdump -c' alias pwgen='pwgen -B -s' # open multiple files in tabs #alias vim='vim -p' alias vim='nvim' if [ $theos == "Darwin" ]; then alias flushdns='sudo killall -HUP mDNSResponder' fi