Differ between professional and personal git.

Signed-off-by: Jacob Kiers <jacob@jacobkiers.net>
This commit is contained in:
Jacob Kiers 2014-01-17 16:21:29 +01:00
parent e1b325d76a
commit c52287f3fc
1 changed files with 18 additions and 0 deletions

View File

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