Clean up init.zsh
This commit is contained in:
parent
a16907ed82
commit
d61e758c1c
2
init.zsh
2
init.zsh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user