]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/themes/dallas.zsh-theme
...
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / themes / dallas.zsh-theme
1 # Personalized!
2
3 # Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
4 DALLAS_CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}}%{$reset_color%}"
5 # Grab the current machine name: muscato
6 DALLAS_CURRENT_MACH_="%{$fg[green]%}%m%{$fg[white]%}:%{$reset_color%}"
7 # Grab the current filepath, use shortcuts: ~/Desktop
8 # Append the current git branch, if in a git repository: ~aw@master
9 DALLAS_CURRENT_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}\$(parse_git_dirty)"
10 # Grab the current username: dallas
11 DALLAS_CURRENT_USER_="%{$fg[red]%}%n%{$reset_color%}"
12 # Use a % for normal users and a # for privileged (root) users.
13 DALLAS_PROMPT_CHAR_="%{$fg[white]%}%(!.#.%%)%{$reset_color%}"
14 # For the git prompt, use a white @ and blue text for the branch name
15 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
16 # Close it all off by resetting the color and styles.
17 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
18 # Do nothing if the branch is clean (no changes).
19 ZSH_THEME_GIT_PROMPT_CLEAN=""
20 # Add 3 cyan ✗s if this branch is diiirrrty! Dirty branch!
21 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}✗✗✗"
22
23 ZSH_THEME_RUBY_PROMPT_PREFIX="%{$fg[white]%}[%{$fg[magenta]%}"
24 ZSH_THEME_RUBY_PROMPT_SUFFIX="%{$fg[white]%}]%{$reset_color%}"
25
26 # Put it all together!
27 PROMPT="$DALLAS_CURRENT_TIME_\$(ruby_prompt_info)$DALLAS_CURRENT_MACH_$DALLAS_CURRENT_LOCA_ $DALLAS_CURRENT_USER_$DALLAS_PROMPT_CHAR_ "