mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
16 lines
756 B
Bash
16 lines
756 B
Bash
# -*-sh-*-
|
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
local current_dir='%{$terminfo[bold]$fg[green]%}%~%{$reset_color%}'
|
|
local rvm_ruby='%{$fg[red]%}$(rvm_prompt_info)%{$reset_color%}'
|
|
local git_branch='%{$fg[green]%}$(git_prompt_info)%{$reset_color%}'
|
|
local psql_version='PG %{$fg[blue]%}`psql --version | sed -e "s/[^.0-9]//g"`${reset_color%}'
|
|
|
|
PROMPT="[%h] %{$fg[blue]%}%n@%m:${rvm_ruby} ${psql_version}
|
|
${git_branch} ${current_dir} %B$%b "
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX=""
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
|
|
|
|
zle_highlight=(region:standout special:standout suffix:bold isearch:bold,underline,fg=yellow,bg=red)
|