From df8d8c69fb0212a5e69227b42a4dc0b20f3250e0 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 3 Dec 2018 13:33:45 +0100 Subject: [PATCH] add git prune alias --- .bash_aliases | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 805db05..a96f051 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -1,3 +1,12 @@ +theos=$(uname -s) + +case $theos in + "Darwin" ) + alias ls='ls -G';; + "Linux" ) + alias ls='ls --color=auto';; +esac + alias grep='grep --color' alias l='ls -lhatr' #alias ls='ls --color=auto' @@ -8,19 +17,18 @@ 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' # export standard terminal for remote connections #alias ssh='export TERM=xterm && ssh' -if [ $(which ncal >/dev/null 2>&1) ]; then - alias cal='ncal -b -M -3' -else - alias cal='cal -m -3' -fi - alias hexdump='hexdump -c' alias pwgen='pwgen -B -s' # open multiple files in tabs alias vim='vim -p' + +if [ $theos == "Darwin" ]; then + alias flushdns='sudo killall -HUP mDNSResponder' +fi