mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Added missing %{..%} escapes.
This resolves buggy behaviour with TAB completion.
This commit is contained in:
parent
381cb6341b
commit
96a3d9bae4
1 changed files with 5 additions and 5 deletions
|
|
@ -29,16 +29,16 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" # TODO: Does not seem to work!
|
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" # TODO: Does not seem to work!
|
||||||
local user_host='%{$terminfo[bold]$fg[blue]%}%n%{$reset_color%}@$fg[green]%m$reset_color'
|
local user_host='%{$terminfo[bold]$fg[blue]%}%n%{$reset_color%}@%{$fg[green]%}%m%{$reset_color%}'
|
||||||
local current_dir='$fg[blue]%~$reset_color'
|
local current_dir='%{$fg[blue]%}%~%{$reset_color%}'
|
||||||
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
local git_branch='$(git_prompt_info)%{$reset_color%}'
|
||||||
local current_time='[%*]'
|
local current_time='[%*]'
|
||||||
local backround_jobs='%(1j.$terminfo[bold]$fg[yellow][%j background job(s)]$reset_color .)'
|
local backround_jobs='%(1j.%{$terminfo[bold]$fg[yellow]%}[%j background job(s)]%{$reset_color%} .)'
|
||||||
|
|
||||||
local ucolor="%(!.%{${fg[red]}%}.%{${fg[green]}%})" # Red if running as root, green if non-root
|
local ucolor="%(!.%{${fg[red]}%}.%{${fg[green]}%})" # Red if running as root, green if non-root
|
||||||
|
|
||||||
PROMPT="$ucolor┌─$reset_color${current_time} ${user_host} ${git_branch}
|
PROMPT="$ucolor┌─%{$reset_color%}${current_time} ${user_host} ${git_branch} ${backround_jobs}
|
||||||
$ucolor└─$reset_color${backround_jobs}${current_dir}$ucolor%(!.#.›) $reset_color"
|
$ucolor└─%{$reset_color%}${current_dir}$ucolor%(!.#.›) %{$reset_color%}"
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="›%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="›%{$reset_color%}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue