mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-25 14:01:03 +00:00
update theme
This commit is contained in:
parent
a9c8da4e04
commit
73c039f52a
1 changed files with 6 additions and 3 deletions
|
|
@ -46,7 +46,8 @@ function directory() {
|
||||||
# REF: https://stackoverflow.com/questions/25944006/bash-current-working-directory-with-replacing-path-to-home-folder
|
# REF: https://stackoverflow.com/questions/25944006/bash-current-working-directory-with-replacing-path-to-home-folder
|
||||||
local directory="${PWD/#$HOME/~}";
|
local directory="${PWD/#$HOME/~}";
|
||||||
local color_reset="%{$reset_color%}";
|
local color_reset="%{$reset_color%}";
|
||||||
echo "${color}[$(basename ${directory})]${color_reset}";
|
echo "${color}$(basename ${directory})${color_reset}";
|
||||||
|
# echo "${color}[$(basename ${directory})]${color_reset}";
|
||||||
}
|
}
|
||||||
|
|
||||||
function __git_branch() {
|
function __git_branch() {
|
||||||
|
|
@ -184,10 +185,12 @@ function update_command_status() {
|
||||||
export COMMAND_RESULT=$COMMAND_RESULT
|
export COMMAND_RESULT=$COMMAND_RESULT
|
||||||
if $COMMAND_RESULT;
|
if $COMMAND_RESULT;
|
||||||
then
|
then
|
||||||
arrow="%{$fg_bold[green]%}⤏";
|
arrow="%{$fg_bold[green]%}➜";
|
||||||
|
# arrow="%{$fg_bold[green]%}⤏";
|
||||||
# arrow="%{$fg_bold[red]%}❱%{$fg_bold[yellow]%}❱%{$fg_bold[green]%}❱";
|
# arrow="%{$fg_bold[red]%}❱%{$fg_bold[yellow]%}❱%{$fg_bold[green]%}❱";
|
||||||
else
|
else
|
||||||
arrow="%{$fg_bold[red]%}⤏";
|
arrow="%{$fg_bold[red]%}➜";
|
||||||
|
# arrow="%{$fg_bold[red]%}⤏";
|
||||||
# arrow="%{$fg_bold[red]%}❱❱❱";
|
# arrow="%{$fg_bold[red]%}❱❱❱";
|
||||||
fi
|
fi
|
||||||
COMMAND_STATUS="${arrow}${reset_font}${color_reset}";
|
COMMAND_STATUS="${arrow}${reset_font}${color_reset}";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue