From 4be2fb4e53dfd1493dc0e4603f2dbf005bea9a09 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Thu, 6 May 2021 12:13:43 -0400 Subject: remove zsh --- dot_local/share/toasty/plugins/sudo | 25 ------------------------- dot_local/share/toasty/plugins/xterm-title | 10 ---------- 2 files changed, 35 deletions(-) delete mode 100644 dot_local/share/toasty/plugins/sudo delete mode 100644 dot_local/share/toasty/plugins/xterm-title (limited to 'dot_local/share/toasty/plugins') 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 -# -# ------------------------------------------------------------------------------ - -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 diff --git a/dot_local/share/toasty/plugins/xterm-title b/dot_local/share/toasty/plugins/xterm-title deleted file mode 100644 index a57ea03..0000000 --- a/dot_local/share/toasty/plugins/xterm-title +++ /dev/null @@ -1,10 +0,0 @@ -function xterm-title { - print -Pn '\e]0;%n@%m $(history $HISTCMD | cut -b8-)\a' -} - -autoload -Uz add-zsh-hook -add-zsh-hook precmd xterm-title -add-zsh-hook preexec xterm-title -add-zsh-hook chpwd xterm-title - -# vim: ft=zsh -- cgit v1.2.3