ohmyzsh/themes/triangle.zsh-theme
Felix Laurie von Massenbach 8a7c1a4c40 Add triangle theme.
2014-03-05 06:14:38 +00:00

23 lines
952 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local chroot_status="${debian_chroot:+($debian_chroot)}"
local return_status="%(?:%{$fg_bold[green]%}∆:%{$fg_bold[red]%}∇)%{$reset_color%}"
if [[ -n "$SSH_CLIENT" ]]; then
local user='$(whoami)'
local user_prompt="${user}@%m : "
fi
local prompt_end="%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})%(!:#:)%{$reset_color%}"
PROMPT="${chroot_status}${return_status} ${user_prompt}%~ ${prompt_end} "
local git_status='$(parse_git_dirty)$(git_prompt_info)%{$reset_color%} $(git_remote_status)'
RPROMPT="${git_status}"
DISABLE_UNTRACKED_FILES_DIRTY=true
ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}"
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_bold[yellow]%}↓%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_bold[green]%}↑%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg_bold[red]%}⇵%{$reset_color%}"