From 727092dec0db191c5692a9d589a4917a0abb79ff Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sun, 13 May 2018 11:34:52 +0200 Subject: [PATCH] FIX: remove `i3-swallow` from cmd if present --- i3swallow.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3swallow.plugin.zsh b/i3swallow.plugin.zsh index f7c3e5d..d297e5d 100644 --- a/i3swallow.plugin.zsh +++ b/i3swallow.plugin.zsh @@ -1,7 +1,7 @@ _i3swallow() { [[ -z $BUFFER ]] && zle up-history if [[ $BUFFER == i3-swallow\ * ]]; then - LBUFFER="${LBUFFER#sudo }" + LBUFFER="${LBUFFER#i3-swallow }" else LBUFFER="i3-swallow $LBUFFER" fi