From c52287f3fcf013d3bb24c43a960b324118991f65 Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Fri, 17 Jan 2014 16:21:29 +0100 Subject: [PATCH] Differ between professional and personal git. Signed-off-by: Jacob Kiers --- includes/bash_functions.bash | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/includes/bash_functions.bash b/includes/bash_functions.bash index da54ae9..610d989 100644 --- a/includes/bash_functions.bash +++ b/includes/bash_functions.bash @@ -302,6 +302,24 @@ function sayit() { pbpaste | say } +function git-work() +{ + if [ -s ~/.gitlocal ]; then + unlink ~/.gitlocal + fi + + ln -s ~/.gitlocal_work ~/.gitlocal +} + +function git-private() +{ + if [ -s ~/.gitlocal ]; then + unlink ~/.gitlocal + fi + + ln -s ~/.gitlocal_private ~/.gitlocal +} + # Add special aliases that will copy result to clipboard (escape → escape+) for cmd in password hex2hsl hex2rgb escape codepoint ssh-key myip; do eval "function $cmd+() { $cmd \$@ | c; }"