mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-25 01:43:04 +01:00
fix(man,tldr): move cursor to end of line after inserting the command (#13186)
This commit is contained in:
1 parent
3943d2f880
commit
89ec2b437b
2 files changed
+2
No files matched your search
@@ -30,6 +30,7 @@ man-command-line() {
|
||||
else
|
||||
BUFFER="man ${args[1]}"
|
||||
fi
|
||||
zle end-of-line
|
||||
}
|
||||
|
||||
zle -N man-command-line
|
||||
|
||||
@@ -11,6 +11,7 @@ tldr-command-line() {
|
||||
args=(${${(Az)BUFFER}[1]} ${${(Az)BUFFER}[2]})
|
||||
|
||||
BUFFER="tldr ${args[1]}"
|
||||
zle end-of-line
|
||||
}
|
||||
|
||||
zle -N tldr-command-line
|
||||
|
||||
Reference in new issue
Block a user