rename clock advanced prompt to equinox

(change is handled automatically, no need for user interaction)
parent 317ef84d
......@@ -111,7 +111,7 @@ if [[ $(ini_get use_bashstyle) == True ]]; then
0 ) pstyle=separator ;;
1 ) pstyle=vector ;;
2 ) pstyle=clock ;;
3 ) pstyle=clock-ad ;;
3 ) pstyle=equinox ;;
4 ) pstyle=elite ;;
5 ) pstyle=poweruser ;;
6 ) pstyle=dirks ;;
......@@ -125,6 +125,7 @@ if [[ $(ini_get use_bashstyle) == True ]]; then
dbg_msg $"BashStyle-NG Setting:" ${pstyle} $"randomly choosen"
else
pstyle=$(ini_get prompt_style)
[[ ${pstyle} == clock-ad ]] && pstyle="equinox"
fi
use_custom_prompt=$(ini_get use_custom_prompt)
......
......@@ -105,7 +105,7 @@ $sepacolor┌─( $usercolor\u $fontcolor@ $hostcolor\h \
$sepacolor)─\${fill}─( $wdircolor\$(_newPWD)\
$sepacolor )────┘\n\
$sepacolor└─($upcolor uptime: \$(systemkit uptime)\
$fontcolor :$CLOCK_AD_1_COLOR\$(CLOCK_AD_1)$fontcolor \$$sepacolor )·>$fontcolor "
$fontcolor :$EQUINOX_1_COLOR\$(EQUINOX_1)$fontcolor \$$sepacolor )·>$fontcolor "
else
......@@ -184,6 +184,6 @@ PROMPT_COMMAND=pre_prompt
PS1="\[\033[\${prompt_line};0H\]\n\
┌─( \u @ \h )─\${fill}─( \$(_newPWD) \
)────┘\n└─( uptime: \$(systemkit uptime) :\$(CLOCK_AD_1) \$ )·> "
)────┘\n└─( uptime: \$(systemkit uptime) :\$(EQUINOX_1) \$ )·> "
fi
......@@ -17,7 +17,7 @@
[[ ! $(declare -f CLOCK_1) ]] && CLOCK_1 () { return 0; }
[[ ! $(declare -f CLOCK_AD_1) ]] && CLOCK_AD_1 () { return 0; }
[[ ! $(declare -f EQUINOX_1) ]] && EQUINOX_1 () { return 0; }
[[ ! $(declare -f ELITE_1) ]] && ELITE_1 () { return 0; }
......
......@@ -147,7 +147,7 @@ The Undobuffer Pythonmodule is licensed under the:
<col id="0" translatable="yes">Floating Clock</col>
</row>
<row>
<col id="0" translatable="yes">Clock Advanced</col>
<col id="0" translatable="yes">Equinox</col>
</row>
<row>
<col id="0" translatable="yes">Elite</col>
......
......@@ -96,7 +96,7 @@ prompt_styles = {
0 : "separator",
1 : "vector",
2 : "clock",
3 : "clock-ad",
3 : "equinox",
4 : "elite",
5 : "poweruser",
6 : "dirks",
......
......@@ -203,7 +203,7 @@ class PromptBuilder(object):
1 : prompts.empty_pc,
2 : prompts.empty_pc,
3 : prompts.floating_clock_pc,
4 : prompts.clock_advanced_pc,
4 : prompts.equinox_pc,
5 : prompts.empty_pc,
6 : prompts.poweruser_pc,
7 : prompts.empty_pc,
......@@ -218,7 +218,7 @@ class PromptBuilder(object):
1 : prompts.separator_ps,
2 : prompts.vector_ps,
3 : prompts.floating_clock_ps,
4 : prompts.clock_advanced_ps,
4 : prompts.equinox_ps,
5 : prompts.elite_ps,
6 : prompts.poweruser_ps,
7 : prompts.dirks_ps,
......
......@@ -26,7 +26,7 @@ PRE_PROMPT_COMMAND"""
floating_clock_ps=r"""[ \u @ \h : \$(truncpwd) ] """
clock_advanced_pc=r"""host=$(echo -n $HOSTNAME | sed -e \"s/[\.].*//\")
equinox_pc=r"""host=$(echo -n $HOSTNAME | sed -e \"s/[\.].*//\")
dirchar=$(ini_get directory_indicator)
trunc_symbol=$(ini_get pwdcut)
trunc_length=$(($(echo $trunc_symbol | wc -m)-1))
......@@ -80,7 +80,7 @@ while [ $i -ge 4 ]; do
done
let prompt_line=${LINES}-1"""
clock_advanced_ps=r"""\[\\033[\${prompt_line};0H\]\┌─( \u @ \h )─\${fill}─( \$(_newPWD) )────┘\└─( uptime: \$(systemkit uptime) : $ )·> """
equinox_ps=r"""\[\\033[\${prompt_line};0H\]\┌─( \u @ \h )─\${fill}─( \$(_newPWD) )────┘\└─( uptime: \$(systemkit uptime) : $ )·> """
elite_ps=r"""\┌─[ \u @ \h ]─[ job #\# ]─[ \$(show_tty) ]─[ \$(date +%H:%M:%S): \$(date +%m/%d/%y) : \$(systemkit uptime) ]\└─[ $ : \$(truncpwd) ]·> """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment