dotfiles/.functions
2013-06-28 12:19:28 -04:00

21 lines
312 B
Text

function g {
if [[ $# > 0 ]]; then
git $@
else
git status
fi
}
compdef g=git
insert-sudo() {
zle beginning-of-line
zle -U "sudo "
}
function port-forward {
ssh $1 -R $2":localhost:"$2 -g
}
function map-sshfs {
sshfs -o idmap=user -o workaround=rename $USER'@'$1':'$2 $HOME'/Mounts/'$3
}