Add battery level into prompt.

Has to be turned on by an env variable, and I only tested it on one
laptop so far.
This commit is contained in:
2022-04-14 13:54:03 -04:00
parent b188aca149
commit 1ea3331a3a
3 changed files with 41 additions and 4 deletions

View File

@ -97,12 +97,12 @@ set prompt_simple="${oldp_color_seq}[%n@%m: %c]%# "
# Screens are almost certainly not a million chars wide.
# If they are... oh well, that's a really weird one.
set date_prefix="%{${csi}A${csi}1000000G${csi}18D%}"
set date_suffix="%{${csi}G${csi}1B%}"
set align_prefix="%{${csi}A${csi}1000000G${csi}18D%}"
set align_suffix="%{${csi}G${csi}1B%}"
#set screen_return="%{8%}"
set date_prompt_core="${date_color_seq}%{%Y-%W-%D %}${time_color_seq}%{%P%}"
set date_prompt_left="${date_prompt_core}"
set date_prompt="${date_prefix}${date_prompt_core}${date_suffix}"
set date_prompt="${date_prompt_core}"
#unset edit
if( $?CSHENV_DEBUG ) then