Skip to content

Commit 7e73f9b

Browse files
committed
fix(themes/absimple): apply changes to the base "agnoster"
1 parent fdc2304 commit 7e73f9b

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

themes/absimple/absimple.theme.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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=""

0 commit comments

Comments
 (0)