mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
位于分支 ran9er
新文件: H_alias_cmd.zsh 新文件: H_alias_path.zsh 新文件: H_eval.zsh 新文件: H_helper.zsh 新文件: H_keys.zsh
This commit is contained in:
parent
1b7a3ea99a
commit
f067e49ebb
5 changed files with 108 additions and 0 deletions
12
lib/H_helper.zsh
Normal file
12
lib/H_helper.zsh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
sudo-command-line() {
|
||||
[[ -z $BUFFER ]] && zle up-history
|
||||
[[ $BUFFER != sudo\ * ]] && BUFFER="sudo $BUFFER"
|
||||
zle end-of-line
|
||||
}
|
||||
zle -N sudo-command-line
|
||||
# [Esc] [Esc]
|
||||
bindkey "\e\e" sudo-command-line
|
||||
|
||||
#[Esc][h] man
|
||||
alias run-help >&/dev/null && unalias run-help
|
||||
autoload run-help
|
||||
Loading…
Add table
Add a link
Reference in a new issue