From b4b68f4cf60c786966fd6715d4276e03c068787d Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Thu, 20 Jun 2024 01:18:11 -0600 Subject: [PATCH] fix for termux --- shell/bashrc | 5 +++-- shell/mkshrc | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/shell/bashrc b/shell/bashrc index 6ea106c..af33c1a 100644 --- a/shell/bashrc +++ b/shell/bashrc @@ -46,8 +46,9 @@ padding() { short_time() { TIME="$(date)" - TIME=${TIME% [AP]M*} - TIME=${TIME##* } + TIME="${TIME% CST*}" + TIME="${TIME% [AP]M*}" + TIME="${TIME##* }" TIME="${TIME%:[0-9]*}" printf '%s' "$TIME" } diff --git a/shell/mkshrc b/shell/mkshrc index e050e2e..8ebced8 100644 --- a/shell/mkshrc +++ b/shell/mkshrc @@ -31,8 +31,9 @@ padding() { short_time() { TIME="$(date)" - TIME=${TIME% [AP]M*} - TIME=${TIME##* } + TIME="${TIME% CST*}" + TIME="${TIME% [AP]M*}" + TIME="${TIME##* }" TIME="${TIME%:[0-9]*}" printf '%s' "$TIME" }