zsh: enhance fzf integration

This commit is contained in:
2026-03-26 09:59:45 +01:00
parent 4a3078edba
commit eb29ac34fd
3 changed files with 37 additions and 14 deletions
@@ -26,7 +26,9 @@ bindkey '^Z' undo # C-z
# A-s to prepend sudo
uy_prepend_sudo() {
if [[ $BUFFER != sudo\ * ]]; then
if [[ $BUFFER == sudo\ * ]]; then
BUFFER="${BUFFER#sudo }"
else
BUFFER="sudo $BUFFER"
CURSOR+=5
fi