From 2ccb2fb7b7a11056286ae5f4f1d88588ae8291d3 Mon Sep 17 00:00:00 2001 From: Paul Gideon Dann Date: Fri, 23 Nov 2012 14:23:28 +0000 Subject: [PATCH] Adding utility function to ease use of sudoedit --- modules/utility/init.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index ea31138c..ee72c649 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -101,6 +101,10 @@ alias lc='lt -c' # Lists sorted by date, most recent last, shows change alias lu='lt -u' # Lists sorted by date, most recent last, shows access time. alias sl='ls' # I often screw this up. +# Sudo-Edit +function se { SUDO_EDITOR="$1" sudoedit ${*:2} } +alias se="nocorrect se" + # Mac OS X Everywhere if [[ "$OSTYPE" == darwin* ]]; then alias o='open'