File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ function __command_rprompt {
4141 local times= n=$COLUMNS tz
4242 for tz in ZRH:Europe/Zurich PIT:US/Eastern \
4343 MTV:US/Pacific TOK:Asia/Tokyo; do
44- [ $n -gt 40 ] || break
44+ (( n > 40 )) || break
4545 times=" $times ${tz%%:* } \e[30;1m:\e[0;36;1m"
4646 times=" $times $( TZ=${tz#*: } date +%H:%M:%S) \e[0m"
47- n=$(( $ n - 10 ))
47+ n=$(( n - 10 ))
4848 done
49- [ -z " $times " ] || printf " % ${n} s $times \\ r " ' '
49+ [[ ! $times ]] || printf ' %*s%s\r ' " $n " ' ' " $times "
5050}
5151
5252# #####################################################################
@@ -75,7 +75,10 @@ function _omb_theme_PROMPT_COMMAND {
7575 local RETVAL=$?
7676 local PRIGHT=" "
7777 local CURRENT_BG=NONE
78- local PR=" $( ansi_single $( text_effect reset) ) "
78+ local REPLY
79+ _omb_theme_agnoster_text_effect reset
80+ _omb_theme_agnoster_ansi_single " $REPLY "
81+ local PR=$REPLY
7982 build_prompt
8083
8184 PS1=" "
You can’t perform that action at this time.
0 commit comments