Merge pull request #3141 from muggenhor/sudo-maintain-cursor-pos
sudo: maintain cursor position
This commit is contained in:
commit
412a92e45e
@ -14,8 +14,7 @@
|
||||
|
||||
sudo-command-line() {
|
||||
[[ -z $BUFFER ]] && zle up-history
|
||||
[[ $BUFFER != sudo\ * ]] && BUFFER="sudo $BUFFER"
|
||||
zle end-of-line
|
||||
[[ $BUFFER != sudo\ * ]] && LBUFFER="sudo $LBUFFER"
|
||||
}
|
||||
zle -N sudo-command-line
|
||||
# Defined shortcut keys: [Esc] [Esc]
|
||||
|
Loading…
Reference in New Issue
Block a user