From 1f8ae8cc1c0b654adb99d40e2ad7e40414074732 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 6 Aug 2015 19:40:08 -0700 Subject: [PATCH] Update. --- bashrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 4ae13cb..adef316 100644 --- a/bashrc +++ b/bashrc @@ -54,6 +54,8 @@ shopt -s histappend setterm -blength 0 +# || setterm --blength 0 # Seriously? + ###################################################################### ## The interactive part @@ -367,7 +369,7 @@ function pho () { function dt () { echo "Local: $(date)" if [[ ${TZ} ]]; then - unset TZ + local TZ=$(cat /etc/timezone) echo "Home: $(date)" fi } @@ -884,7 +886,7 @@ PROMPT_COMMAND="prompt_command" # Displaying the timezone if it is set if [[ ${TZ} ]]; then - echo "${VT_BOLD}${VT_GREEN_FG}Time zone is ${TZ}.${VT_RESET}" + echo "${VT_BOLD}${VT_BLUE_FG}Time zone is ${TZ}.${VT_RESET}" fi ###################################################################### -- 2.20.1