aboutsummaryrefslogtreecommitdiff
path: root/cfg
diff options
context:
space:
mode:
Diffstat (limited to 'cfg')
-rw-r--r--cfg/fish/fish_right_prompt.fish16
1 files changed, 2 insertions, 14 deletions
diff --git a/cfg/fish/fish_right_prompt.fish b/cfg/fish/fish_right_prompt.fish
index df41686..8346fb5 100644
--- a/cfg/fish/fish_right_prompt.fish
+++ b/cfg/fish/fish_right_prompt.fish
@@ -8,25 +8,13 @@ function fish_right_prompt
set color red
end
- # set inverse color
- if test $color = "white"
- set colorInverse red
- else
- set color white
- end
-
- # set date in dt
- #set dt $(date '+%Y-%m-%d')
-
# set battery capacity in bat
set bat $(cat /sys/class/power_supply/BAT0/capacity)
# move up a line
echo -e "\e[1A"
# print prompt
- echo -e (set_color $colorInverse)"( "(set_color $color)"stat.$last_status"(set_color $colorInverse)" | " \
- (set_color $color)"bat.$bat%"(set_color $colorInverse) " )"
- #(set_color $color)"$dt"(set_color $colorInverse)" )"
- # go back one line so the user doesn't overwrite fish_prompt
+ echo -e (set_color red)"( "(set_color $color)"$last_status"(set_color red)" |" \
+ (set_color white)"$bat%"(set_color red)" )"(set_color normal)
echo -e "\e[1B"
end