For when you forget sudo
This commit is contained in:
parent
afad98a9dd
commit
631f77f852
2 changed files with 11 additions and 2 deletions
|
@ -7,7 +7,12 @@ function g {
|
|||
}
|
||||
compdef g=git
|
||||
|
||||
function port-forward {
|
||||
ssh $1 -R $2":localhost:"$2 -g;
|
||||
insert-sudo() {
|
||||
zle beginning-of-line
|
||||
zle -U "sudo "
|
||||
}
|
||||
|
||||
function port-forward {
|
||||
ssh $1 -R $2":localhost:"$2 -g
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue