legacy-dotfiles/zsh/.zsh/functions/insert-sudo

6 lines
148 B
Text
Raw Normal View History

2014-07-01 22:53:27 +02:00
# -*- mode: sh; -*-
# Copied and modified from
# http://zshwiki.org/home/code/zle/addsudoorpfexec
BUFFER="sudo $(history -n -1 -1)"
CURSOR=$#BUFFER