mirror of
https://github.com/grassmunk/Chicago95.git
synced 2025-07-27 07:34:36 +02:00
Fix line wrapping issue
This commit is contained in:
parent
c3c8030786
commit
9502168825
@ -1,12 +1,20 @@
|
|||||||
local ret_status="%(?:C:F)"
|
local ret_status="%(?:C:F)"
|
||||||
|
local ret_status_git="%(?:G:F)"
|
||||||
function __msdos_pwd() {
|
function __msdos_pwd() {
|
||||||
local __path=$(pwd)
|
local __path=$(pwd)
|
||||||
echo $__path | tr '/' '\\'
|
echo $__path | tr '/' '\\'
|
||||||
}
|
}
|
||||||
PROMPT='${ret_status}:$(git_prompt_info)$(__msdos_pwd)>'
|
function __get_prefix_chicago95_zsh() {
|
||||||
|
if git rev-parse --git-dir > /dev/null 2>&1; then
|
||||||
|
echo $ret_status_git;
|
||||||
|
else
|
||||||
|
echo $ret_status;
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
local ret_status_git="%(?:G:F)"
|
PROMPT='$(__get_prefix_chicago95_zsh):$(git_prompt_info)$(__msdos_pwd)>'
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="\b\b${ret_status_git}:\\%{$fg[yellow]%}"
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="\\%{$fg[yellow]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}\\%{$fg[red]%}dirty"
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}\\%{$fg[red]%}dirty"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}\\%{$fg[green]%}clean"
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}\\%{$fg[green]%}clean"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user