From 0d70f1dc57a7aeaba7a4977ccaccfd44a3722517 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 1 Jul 2014 22:53:27 +0200 Subject: Update zsh --- zsh/functions/insert-sudo | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 zsh/functions/insert-sudo (limited to 'zsh/functions/insert-sudo') diff --git a/zsh/functions/insert-sudo b/zsh/functions/insert-sudo new file mode 100644 index 0000000..4fc68e6 --- /dev/null +++ b/zsh/functions/insert-sudo @@ -0,0 +1,5 @@ +# -*- mode: sh; -*- +# Copied and modified from +# http://zshwiki.org/home/code/zle/addsudoorpfexec +BUFFER="sudo $(history -n -1 -1)" +CURSOR=$#BUFFER -- cgit v1.3-2-g0d8e