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