Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Put it into your ~/.oh-my-zsh/theme/ folder
- # Save as .zsh-theme file
- local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
- if [[ $UID -eq 0 ]]; then
- local user_host='%{$terminfo[bold]$fg[magenta]%}%n%{$terminfo[bold]$fg[magenta]%}@%m %{$reset_color%}'
- local user_symbol='#'
- else
- local user_host='%{$terminfo[bold]$fg[yellow]%}[%n%{$reset_color%}%{$fg[green]%}@%{$fg[blue]%}%m] -'
- local user_symbol='%{$fg[red]%}:3%{$reset_color%} %{$terminfo[bold]$fg[yellow]%}:3%{$reset_color%} %{$fg[green]%}<3%{$reset_color%} %{$fg[blue]%}:3%{$reset_color%} %{$fg[magenta]%}<3%{$reset_color%}'
- fi
- local current_dir='%{$reset_color%} %{$terminfo[bold]$fg[magenta]%}[ %~ ]%{$reset_color%}'
- local git_branch='$(git_prompt_info)'
- local rvm_ruby='$(ruby_prompt_info)'
- local venv_prompt='$(virtualenv_prompt_info)'
- ZSH_THEME_RVM_PROMPT_OPTIONS="i v g"
- PROMPT="
- %{$fg[red]%}╭─%{$reset_color%}${user_host}${current_dir}${rvm_ruby}${git_branch}${venv_prompt}
- %{$fg[red]%}├─%{$reset_color%}%B${user_symbol}%b
- %{$fg[red]%}╰───%{$reset_color%}%{$terminfo[bold]$fg[yellow]%}: > "
- RPROMPT="%B${return_code}%b"
- ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"
- ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}"
- ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[red]%}‹"
- ZSH_THEME_RUBY_PROMPT_SUFFIX="› %{$reset_color%}"
- ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="%{$fg[green]%}‹"
- ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="› %{$reset_color%}"
- ZSH_THEME_VIRTUALENV_PREFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX
- ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement