-
Notifications
You must be signed in to change notification settings - Fork 0
/
piepieninja.zsh-theme
43 lines (32 loc) · 1.13 KB
/
piepieninja.zsh-theme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# PIEPIENINJA!!!!!
# Grab the time (%t) wrapped in {}: {%t}
# uncomment to go back# DALLAS_CURRENT_TIME_="%{$fg[white]%}{%{$fg[yellow]%}%D %T%{$fg[white]%}}%{$reset_color%}"
CURRENT_TIME="%{$fg[white]%}{%{$fg[yellow]%}%t%{$fg[white]%}}%{$reset_color%}"
#========GIT========#
# For the git prompt, use a white @ and blue text for the branch name
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}@%{$fg[blue]%}"
# Close it all off by resetting the color and styles.
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
# Do nothing if the branch is clean (no changes).
ZSH_THEME_GIT_PROMPT_CLEAN=""
# Add 1 cyan ✗ if this branch is diiirrrty! Dirty branch!
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✗"
#=====functions=====#
# Grab the battery life!
function BATTERY(){
${REPO_PATH}/scripts/battery.rb
}
function GIT_PROMPT(){
git_prompt_info
}
function GIT_STATUS(){
parse_git_dirty
}
function ITUNES(){
${REPO_PATH}/scripts/itunes.rb
}
# Put it all together!
setopt promptsubst
PROMPT='$(BATTERY)$(ITUNES)$CURRENT_TIME%{$fg[cyan]%} %~$(GIT_PROMPT)$(GIT_STATUS) %{$fg[white]%}%(!.#.%{$fg[white]%}⌘ )%{$reset_color%} '
#setopt promprsubst
#RPROMPT='$(ITUNES)'