mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 05:59:46 +08:00
Compare commits
No commits in common. "8f22370af8bd390ea3b8610da1ccf388826d909d" and "fff073b55defed72a0a1aac4e853b165f208735b" have entirely different histories.
8f22370af8
...
fff073b55d
@ -32,26 +32,19 @@ if [[ -n "${terminfo[knp]}" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Start typing + [Up-Arrow] - fuzzy find history forward
|
# Start typing + [Up-Arrow] - fuzzy find history forward
|
||||||
|
if [[ -n "${terminfo[kcuu1]}" ]]; then
|
||||||
autoload -U up-line-or-beginning-search
|
autoload -U up-line-or-beginning-search
|
||||||
zle -N up-line-or-beginning-search
|
zle -N up-line-or-beginning-search
|
||||||
|
|
||||||
bindkey -M emacs "^[[A" up-line-or-beginning-search
|
|
||||||
bindkey -M viins "^[[A" up-line-or-beginning-search
|
|
||||||
bindkey -M vicmd "^[[A" up-line-or-beginning-search
|
|
||||||
if [[ -n "${terminfo[kcuu1]}" ]]; then
|
|
||||||
bindkey -M emacs "${terminfo[kcuu1]}" up-line-or-beginning-search
|
bindkey -M emacs "${terminfo[kcuu1]}" up-line-or-beginning-search
|
||||||
bindkey -M viins "${terminfo[kcuu1]}" up-line-or-beginning-search
|
bindkey -M viins "${terminfo[kcuu1]}" up-line-or-beginning-search
|
||||||
bindkey -M vicmd "${terminfo[kcuu1]}" up-line-or-beginning-search
|
bindkey -M vicmd "${terminfo[kcuu1]}" up-line-or-beginning-search
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start typing + [Down-Arrow] - fuzzy find history backward
|
# Start typing + [Down-Arrow] - fuzzy find history backward
|
||||||
|
if [[ -n "${terminfo[kcud1]}" ]]; then
|
||||||
autoload -U down-line-or-beginning-search
|
autoload -U down-line-or-beginning-search
|
||||||
zle -N down-line-or-beginning-search
|
zle -N down-line-or-beginning-search
|
||||||
|
|
||||||
bindkey -M emacs "^[[B" down-line-or-beginning-search
|
|
||||||
bindkey -M viins "^[[B" down-line-or-beginning-search
|
|
||||||
bindkey -M vicmd "^[[B" down-line-or-beginning-search
|
|
||||||
if [[ -n "${terminfo[kcud1]}" ]]; then
|
|
||||||
bindkey -M emacs "${terminfo[kcud1]}" down-line-or-beginning-search
|
bindkey -M emacs "${terminfo[kcud1]}" down-line-or-beginning-search
|
||||||
bindkey -M viins "${terminfo[kcud1]}" down-line-or-beginning-search
|
bindkey -M viins "${terminfo[kcud1]}" down-line-or-beginning-search
|
||||||
bindkey -M vicmd "${terminfo[kcud1]}" down-line-or-beginning-search
|
bindkey -M vicmd "${terminfo[kcud1]}" down-line-or-beginning-search
|
||||||
|
|||||||
@ -6,15 +6,10 @@ local current_dir="%B%{$fg[blue]%}%~ %{$reset_color%}"
|
|||||||
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
|
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)'
|
||||||
local rvm_ruby='$(ruby_prompt_info)'
|
local rvm_ruby='$(ruby_prompt_info)'
|
||||||
local venv_prompt='$(virtualenv_prompt_info)'
|
local venv_prompt='$(virtualenv_prompt_info)'
|
||||||
if [[ "${plugins[@]}" =~ 'kube-ps1' ]]; then
|
|
||||||
local kube_prompt='$(kube_ps1)'
|
|
||||||
else
|
|
||||||
local kube_prompt=''
|
|
||||||
fi
|
|
||||||
|
|
||||||
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
|
ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
|
||||||
|
|
||||||
PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}${kube_prompt}
|
PROMPT="╭─${user_host}${current_dir}${rvm_ruby}${vcs_branch}${venv_prompt}
|
||||||
╰─%B${user_symbol}%b "
|
╰─%B${user_symbol}%b "
|
||||||
RPROMPT="%B${return_code}%b"
|
RPROMPT="%B${return_code}%b"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user