diff options
author | lumbric <lumbric@gmail.com> | 2013-12-21 19:49:44 +0100 |
---|---|---|
committer | lumbric <lumbric@gmail.com> | 2013-12-21 19:49:44 +0100 |
commit | b58b996b40f8de1f030d59336e3594b63ef598ee (patch) | |
tree | e06e1d5d2e2544c83adb3fe2424a221706446699 /plugins/sudo/sudo.zsh | |
parent | a38af27991d15d14ac4ca55c919bb694d7eafb7a (diff) | |
download | zsh-b58b996b40f8de1f030d59336e3594b63ef598ee.tar.gz zsh-b58b996b40f8de1f030d59336e3594b63ef598ee.tar.bz2 zsh-b58b996b40f8de1f030d59336e3594b63ef598ee.zip |
fix name schema for sudo plugin
Plugin won't load automatically if added to variable $plugins, if name schema different than $name/$name.plugin.zsh is used (see is_plugin() in oh-my-zsh.sh).
Diffstat (limited to 'plugins/sudo/sudo.zsh')
-rw-r--r-- | plugins/sudo/sudo.zsh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/plugins/sudo/sudo.zsh b/plugins/sudo/sudo.zsh deleted file mode 100644 index d12e06853..000000000 --- a/plugins/sudo/sudo.zsh +++ /dev/null @@ -1,22 +0,0 @@ -# ------------------------------------------------------------------------------ -# Description -# ----------- -# -# sudo will be inserted before the command -# -# ------------------------------------------------------------------------------ -# Authors -# ------- -# -# * Dongweiming <ciici123@gmail.com> -# -# ------------------------------------------------------------------------------ - -sudo-command-line() { -[[ -z $BUFFER ]] && zle up-history -[[ $BUFFER != sudo\ * ]] && BUFFER="sudo $BUFFER" -zle end-of-line -} -zle -N sudo-command-line -# Defined shortcut keys: [Esc] [Esc] -bindkey "\e\e" sudo-command-line |