Skip to content

Instantly share code, notes, and snippets.

@x1a0
Created February 18, 2014 16:04
Show Gist options
  • Save x1a0/9073868 to your computer and use it in GitHub Desktop.
Save x1a0/9073868 to your computer and use it in GitHub Desktop.
zsh sudo
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