diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-05-16 17:55:27 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-05-16 17:55:27 +0200 |
| commit | 092913992741384894caa98a37cf61e1096999d7 (patch) | |
| tree | 781faa4abd9c870d7c339d8137d0c38792beb5c9 /cfg/fish/fish_right_prompt.fish | |
| parent | fc54ce1f280cae9027f52cfe025cebdf62f3d4cf (diff) | |
update fish prompt + git integration, remove right prompt
Diffstat (limited to 'cfg/fish/fish_right_prompt.fish')
| -rw-r--r-- | cfg/fish/fish_right_prompt.fish | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/cfg/fish/fish_right_prompt.fish b/cfg/fish/fish_right_prompt.fish deleted file mode 100644 index 8346fb5..0000000 --- a/cfg/fish/fish_right_prompt.fish +++ /dev/null @@ -1,20 +0,0 @@ -function fish_right_prompt - set last_status $status - - # check for which color to use - if test $last_status -eq 0 - set color white - else - set color red - end - - # 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 red)"( "(set_color $color)"$last_status"(set_color red)" |" \ - (set_color white)"$bat%"(set_color red)" )"(set_color normal) - echo -e "\e[1B" -end |