dotfiles/.functions

13 lines
153 B
Text

function g {
if [[ $# > 0 ]]; then
git $@
else
git status
fi
}
compdef g=git
function port-forward {
ssh $1 -R $2":localhost:"$2 -g;
}