Clean up init.zsh

This commit is contained in:
Alexander Rosenberg 2024-09-10 02:16:14 -07:00
parent a16907ed82
commit d61e758c1c
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -171,7 +171,7 @@ sudo-command-line() {
if [[ $BUFFER == ${__zsh_sudo_cmd}\ * ]]; then if [[ $BUFFER == ${__zsh_sudo_cmd}\ * ]]; then
LBUFFER="${LBUFFER#${__zsh_sudo_cmd} }" LBUFFER="${LBUFFER#${__zsh_sudo_cmd} }"
else else
LBUFFER="${__zsh_sudo_cmd} $LBUFFER" LBUFFER="${__zsh_sudo_cmd} ${LBUFFER}"
fi fi
} }
zle -N sudo-command-line zle -N sudo-command-line