]> git.rmz.io Git - dotfiles.git/blob - zsh/themes/junkfood.zsh-theme
update zshrc
[dotfiles.git] / zsh / themes / junkfood.zsh-theme
1 # ------------------------------------------------------------------------
2 # Tyler Cipriani
3 # oh-my-zsh theme
4 # Totally ripped off Dallas theme
5 # ------------------------------------------------------------------------
6
7 # Grab the current date (%W) and time (%t):
8 JUNKFOOD_TIME_="%{$fg_bold[red]%}#%{$fg_bold[white]%}( %{$fg_bold[yellow]%}%W%{$reset_color%}@%{$fg_bold[white]%}%t )( %{$reset_color%}"
9
10 # Grab the current machine name
11 JUNKFOOD_MACHINE_="%{$fg_bold[blue]%}%m%{$fg[white]%} ):%{$reset_color%}"
12
13 # Grab the current username
14 JUNKFOOD_CURRENT_USER_="%{$fg_bold[green]%}%n%{$reset_color%}"
15
16 # Grab the current filepath, use shortcuts: ~/Desktop
17 # Append the current git branch, if in a git repository: ~aw@master
18 JUNKFOOD_LOCA_="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}"
19
20 # For the git prompt, use a white @ and blue text for the branch name
21 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg_bold[white]%}"
22
23 # Close it all off by resetting the color and styles.
24 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
25
26 # Do nothing if the branch is clean (no changes).
27 ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[green]%}✔"
28
29 # Add 3 cyan ✗s if this branch is diiirrrty! Dirty branch!
30 ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗✗✗"
31
32 # Put it all together!
33 PROMPT="$JUNKFOOD_TIME_$JUNKFOOD_CURRENT_USER_@$JUNKFOOD_MACHINE_$JUNKFOOD_LOCA_
34 "