mirror of
https://github.com/grassmunk/Chicago95.git
synced 2025-07-30 17:15:13 +02:00
Add a dos inspired theme for oh-my-zsh
- C prompt by default - F prompt if the previous command had an exit code other than 0 - G prompt when in a git repository, followed by the branch name (in yellow) and the status (dirty in red, clean in green)
This commit is contained in:
parent
f842aeb7cb
commit
c3c8030786
12
Extras/Chicago95.zsh-theme
Normal file
12
Extras/Chicago95.zsh-theme
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
local ret_status="%(?:C:F)"
|
||||||
|
function __msdos_pwd() {
|
||||||
|
local __path=$(pwd)
|
||||||
|
echo $__path | tr '/' '\\'
|
||||||
|
}
|
||||||
|
PROMPT='${ret_status}:$(git_prompt_info)$(__msdos_pwd)>'
|
||||||
|
|
||||||
|
local ret_status_git="%(?:G:F)"
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="\b\b${ret_status_git}:\\%{$fg[yellow]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}\\%{$fg[red]%}dirty"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}\\%{$fg[green]%}clean"
|
Loading…
x
Reference in New Issue
Block a user