mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
ei-grad theme
This commit is contained in:
parent
e44aa50301
commit
1b15c4bbc9
1 changed files with 18 additions and 0 deletions
18
themes/ei-grad.zsh-theme
Normal file
18
themes/ei-grad.zsh-theme
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# ZSH Theme - Preview: http://ei-grad.ru/zshtheme.png
|
||||||
|
|
||||||
|
local user_host='%{$terminfo[bold]$fg[blue]%}%n@%m%{$reset_color%}'
|
||||||
|
local current_dir='%{$terminfo[bold]$fg[gray]%} %~%{$reset_color%}'
|
||||||
|
|
||||||
|
ZSH_THEME_VIRTUALENV_PREFIX="%{$fg[yellow]%}env:"
|
||||||
|
ZSH_THEME_VIRTUALENV_SUFFIX="%{$reset_color%} "
|
||||||
|
local venv='$(virtualenv_prompt_info)'
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}‹"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="›%{$reset_color%} "
|
||||||
|
local git='$(git_prompt_info)'
|
||||||
|
|
||||||
|
PROMPT="%B[%b ${user_host}${current_dir} ${venv}${git}%B]%b
|
||||||
|
%B→%b "
|
||||||
|
|
||||||
|
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
||||||
|
RPS1="${return_code}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue