Created
February 18, 2014 16:04
-
-
Save x1a0/9073868 to your computer and use it in GitHub Desktop.
zsh sudo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert_sudo () { zle beginning-of-line; zle -U "sudo " } | |
zle -N insert-sudo insert_sudo | |
bindkey "^[s" insert-sudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment