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; }"