summaryrefslogtreecommitdiff
path: root/dot_local/share/toasty/plugins/sudo
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toast.cafe>2021-05-06 12:13:43 -0400
committerChloe Kudryavtsev <toast@toast.cafe>2021-05-06 12:13:43 -0400
commit4be2fb4e53dfd1493dc0e4603f2dbf005bea9a09 (patch)
treefd655147927f0f5d5a75a7dce813abddbc1ae10f /dot_local/share/toasty/plugins/sudo
parentupdate tmux conf (diff)
remove zsh
Diffstat (limited to '')
-rw-r--r--dot_local/share/toasty/plugins/sudo25
1 files changed, 0 insertions, 25 deletions
diff --git a/dot_local/share/toasty/plugins/sudo b/dot_local/share/toasty/plugins/sudo
deleted file mode 100644
index 0ba8bed..0000000
--- a/dot_local/share/toasty/plugins/sudo
+++ /dev/null
@@ -1,25 +0,0 @@
-# ------------------------------------------------------------------------------
-# Description
-# -----------
-#
-# sudo will be inserted before the command
-#
-# ------------------------------------------------------------------------------
-# Authors
-# -------
-#
-# * Dongweiming <ciici123@gmail.com>
-#
-# ------------------------------------------------------------------------------
-
-sudo-command-line() {
- [[ -z $BUFFER ]] && zle up-history
- if [[ $BUFFER == sudo\ * ]]; then
- LBUFFER="${LBUFFER#sudo }"
- else
- LBUFFER="sudo $LBUFFER"
- fi
-}
-zle -N sudo-command-line
-# Defined shortcut keys: [Esc] [Esc]
-bindkey "\e\e" sudo-command-line