1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-12-18 17:13:32 +08:00
This commit is contained in:
danielwerg 2025-12-08 08:37:34 -08:00 committed by GitHub
commit 1f506502df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -11,6 +11,7 @@ tldr-command-line() {
args=(${${(Az)BUFFER}[1]} ${${(Az)BUFFER}[2]}) args=(${${(Az)BUFFER}[1]} ${${(Az)BUFFER}[2]})
BUFFER="tldr ${args[1]}" BUFFER="tldr ${args[1]}"
zle end-of-line
} }
zle -N tldr-command-line zle -N tldr-command-line