FIX: remove i3-swallow from cmd if present

This commit is contained in:
Sebastian Mark 2018-05-13 11:34:52 +02:00
parent 73fa9df70e
commit 727092dec0

View file

@ -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