summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-07-12 11:32:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-07-12 11:32:24 +0200
commit987a322928a8f0c9063f0868bfc2815a735f81e9 (patch)
tree98022e17bacb67a4e7281ccae6967ea88a240962 /.zshrc
parent86e662e6086d66efd0c4e2bb89f3ca07c5073771 (diff)
downloaddotfiles-987a322928a8f0c9063f0868bfc2815a735f81e9.tar.gz
dotfiles-987a322928a8f0c9063f0868bfc2815a735f81e9.tar.xz
zshrc: use sudo.vim for sv()
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index d96e8b9..7627268 100644
--- a/.zshrc
+++ b/.zshrc
@@ -240,6 +240,10 @@ SPROMPT='zsh: correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) '
# }}}
# Functions {{{
+sv() {
+ vim "sudo:$1"
+}
+
starttls() {
gnutls-cli --starttls --crlf "$@"
}
@@ -611,7 +615,6 @@ alias hexdump='hexdump -C'
alias vp='PAGER=vimpager'
alias v='vim'
-alias sv='sudo -E vim'
alias g='git'
alias xc="xclip"