2010-03-17 19:25:17 +01:00
|
|
|
# Personalized!
|
|
|
|
|
2010-05-07 20:17:12 +02:00
|
|
|
# Grab the current date (%D) and time (%T) wrapped in {}: {%D %T}
|
2019-12-19 03:07:30 +01:00
|
|
|
DALLAS_CURRENT_TIME_="%F{white}{%F{yellow}%D %T%F{white}}%f"
|
2010-05-07 20:17:12 +02:00
|
|
|
# Grab the current machine name: muscato
|
2019-12-19 03:07:30 +01:00
|
|
|
DALLAS_CURRENT_MACH_="%F{green}%m%F{white}:%f"
|
2010-05-07 20:17:12 +02:00
|
|
|
# Grab the current filepath, use shortcuts: ~/Desktop
|
|
|
|
# Append the current git branch, if in a git repository: ~aw@master
|
2019-12-19 03:07:30 +01:00
|
|
|
DALLAS_CURRENT_LOCA_="%F{cyan}%~\$(git_prompt_info)%f\$(parse_git_dirty)"
|
2010-05-07 20:17:12 +02:00
|
|
|
# Grab the current username: dallas
|
2019-12-19 03:07:30 +01:00
|
|
|
DALLAS_CURRENT_USER_="%F{red}%n%f"
|
2010-05-07 20:17:12 +02:00
|
|
|
# Use a % for normal users and a # for privelaged (root) users.
|
2019-12-19 03:07:30 +01:00
|
|
|
DALLAS_PROMPT_CHAR_="%F{white}%(!.#.%%)%f"
|
2010-05-07 20:17:12 +02:00
|
|
|
# For the git prompt, use a white @ and blue text for the branch name
|
2019-12-19 03:07:30 +01:00
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="%F{white}@%F{blue}"
|
2010-05-07 20:17:12 +02:00
|
|
|
# Close it all off by resetting the color and styles.
|
2019-12-19 03:07:30 +01:00
|
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%f"
|
2010-05-07 20:17:12 +02:00
|
|
|
# Do nothing if the branch is clean (no changes).
|
|
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
|
|
# Add 3 cyan ✗s if this branch is diiirrrty! Dirty branch!
|
2019-12-19 03:07:30 +01:00
|
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="%F{cyan}✗✗✗"
|
2010-03-17 19:25:17 +01:00
|
|
|
|
2019-12-19 03:07:30 +01:00
|
|
|
ZSH_THEME_RUBY_PROMPT_PREFIX="%F{white}[%F{magenta}"
|
|
|
|
ZSH_THEME_RUBY_PROMPT_SUFFIX="%F{white}]%f"
|
2015-11-06 23:20:11 +01:00
|
|
|
|
2010-05-07 20:17:12 +02:00
|
|
|
# Put it all together!
|
2015-11-06 23:20:11 +01:00
|
|
|
PROMPT="$DALLAS_CURRENT_TIME_\$(ruby_prompt_info)$DALLAS_CURRENT_MACH_$DALLAS_CURRENT_LOCA_ $DALLAS_CURRENT_USER_$DALLAS_PROMPT_CHAR_ "
|