clock_check added, datetime added instaed of clock, also battery_percentage added
This commit is contained in:
@@ -14,6 +14,8 @@ SCM_THEME_COMMIT_PREFIX='commit:'
|
||||
SCM_THEME_REMOTE_PREFIX=''
|
||||
|
||||
CLOCK_CHAR='☆'
|
||||
CLOCK_CHECK=${CLOCK_CHECK:=true}
|
||||
BATTER_PERCENTAGE_CHECK=${BATTER_PERCENTAGE_CHECK:=true}
|
||||
|
||||
SCM_GIT_SHOW_DETAILS=${SCM_GIT_SHOW_DETAILS:=true}
|
||||
|
||||
@@ -294,14 +296,28 @@ function prompt_char {
|
||||
}
|
||||
|
||||
function clock_char {
|
||||
echo -e "$CLOCK_CHAR"
|
||||
if [[ "${CLOCK_CHECK}" = true ]]; then
|
||||
DATE_STRING=$(date +"%Y-%m-%d %H:%M:%S")
|
||||
echo -e "${bold_cyan}$DATE_STRING ${red}$CLOCK_CHAR"
|
||||
fi
|
||||
}
|
||||
|
||||
function battery_char {
|
||||
if [[ "${BATTER_PERCENTAGE_CHECK}" = true ]]; then
|
||||
echo -e "${bold_red}$(battery_percentage)%"
|
||||
fi
|
||||
}
|
||||
|
||||
if [ ! -e $BASH_IT/plugins/enabled/battery.plugin.bash ]; then
|
||||
# if user has installed battery plugin, skip this...
|
||||
# if user has installed battery plugin, skip this...
|
||||
function battery_charge (){
|
||||
# no op
|
||||
echo -n
|
||||
# no op
|
||||
echo -n
|
||||
}
|
||||
|
||||
function battery_char (){
|
||||
# no op
|
||||
echo -n
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user