mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
themes/half-way: Apply review comments
This commit is contained in:
committed by
Koichi Murase
parent
dbc3db03f3
commit
c58321b9e6
@@ -5,8 +5,8 @@ OSH_THEME_GIT_PROMPT_CLEAN="✓"
|
||||
|
||||
# Nicely formatted terminal prompt
|
||||
ps_scm_prompt() {
|
||||
CHAR=$(scm_char)
|
||||
if [ $CHAR = $SCM_NONE_CHAR ]
|
||||
local CHAR=$(scm_char)
|
||||
if [ "$CHAR" = "$SCM_NONE_CHAR" ]
|
||||
then
|
||||
return
|
||||
else
|
||||
@@ -14,10 +14,10 @@ ps_scm_prompt() {
|
||||
fi
|
||||
}
|
||||
|
||||
function prompt_command() {
|
||||
ps_username="${purple}\u${normal}"
|
||||
ps_path="${green}\w${normal}"
|
||||
ps_user_mark="${orange}λ${normal}"
|
||||
prompt_command() {
|
||||
local ps_username="${purple}\u${normal}"
|
||||
local ps_path="${green}\w${normal}"
|
||||
local ps_user_mark="${orange}λ${normal}"
|
||||
|
||||
PS1="$ps_username in $ps_path$(ps_scm_prompt) $ps_user_mark "
|
||||
}
|
||||
|
Reference in New Issue
Block a user