1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-12 15:34:50 +08:00

feat(man,tldr): move cursor to the end of line

This commit is contained in:
danielwerg 2025-06-26 06:25:30 +03:00
parent 01433503c2
commit 3bafaea630
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ man-command-line() {
else
BUFFER="man ${args[1]}"
fi
zle end-of-line
}
zle -N man-command-line

View File

@ -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