mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
#
|
|
# Available Color Options are :
|
|
#
|
|
# red, green, blue, cyan, magenta, yellow, white, black
|
|
#
|
|
# Reference to what stuff in the Prompt is:
|
|
# %n = username
|
|
# %~ = pwd
|
|
# %m = machine name
|
|
#
|
|
|
|
# $FG[025] - dark blue
|
|
# $FG[050] - cyan
|
|
# $FG[075] - light blue
|
|
# $FG[100] - muddy yellow
|
|
# $FG[125] - strawberry
|
|
# $FG[145] - white
|
|
|
|
PROMPT='%{$BG[028]%}%{$fg[white]%} $(collapse_pwd) \
|
|
%{$BG[056]%}%{$fg[white]%}$(git_prompt_short_sha)\
|
|
%{$bg[blue]%}%{$fg[black]%}$(git_prompt_info)\
|
|
%{$reset_color%}$(git_prompt_status)
|
|
%{$reset_color%}> '
|
|
|
|
ZSH_THEME_GIT_PROMPT_SHA_BEFORE=" "
|
|
ZSH_THEME_GIT_PROMPT_SHA_AFTER=" "
|
|
ZSH_THEME_GIT_PROMPT_PREFIX=" ⑀ "
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX=""
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$bg[yellow]%}%{$fg[black]%} ⸭ "
|
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[black]%} ☩ "
|
|
|
|
# RPROMPT='$(git_prompt_status) %{$reset_color%}'
|
|
|
|
ZSH_THEME_GIT_PROMPT_ADDED="%{$BG[010]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$BG[012]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_DELETED="%{$BG[009]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_RENAMED="%{$BG[011]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$BG[014]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$BG[008]%}%{$fg[black]%} ✰ %{$reset_color%}"
|
|
|
|
#
|
|
# Convert the home directory to "~"
|
|
# (Courtesy of Mr. Steve Losh)
|
|
#෴
|
|
|
|
function collapse_pwd {
|
|
echo $(pwd | sed -e "s,^$HOME,~,")
|
|
}
|
|
|
|
#
|
|
# Some Special Characters if you want to swap out the prompts
|
|
# -----------------------------------------------------------
|
|
# ✰ ✼ ✪ ✙ ♔ ♘ ♜ ♛ ♚ ♞ ♬ ⏀ ⌦ ⌘ ≫ ⇪ ☩ ☀ ☂ ★ ⚓ Ө β δ Σ Ω μ Δ ↪
|
|
|
|
|