From 2217bd0341be66ec4887facb7daeebe16771dc60 Mon Sep 17 00:00:00 2001 From: jStmaX! <87650746+jstmaxlol@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:29:57 +0200 Subject: ## --- cfg/fish_prompt[s].fish | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'cfg') diff --git a/cfg/fish_prompt[s].fish b/cfg/fish_prompt[s].fish index c4c9b49..06d5c6c 100644 --- a/cfg/fish_prompt[s].fish +++ b/cfg/fish_prompt[s].fish @@ -1,4 +1,3 @@ -# fish_prompt function fish_prompt set -l user $USER set -l cwd $PWD @@ -8,7 +7,7 @@ function fish_prompt # if in ~ echo -e (set_color white)"╭"(set_color red)"("(set_color white)"$user" \ (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \ - (set_color white)"~"(set_color red)")"(set_color red)"\n╰"(set_color white)"⮞ " + (set_color white)"~"(set_color red)")"(set_color red)"\n╰"(set_color normal)"⮞ " # ╭(max⮞⮞⮞~) # ╰⮞ else if string match -q "$home/*" $cwd @@ -16,35 +15,11 @@ function fish_prompt # if in a ~ subdir echo -e (set_color white)"╭"(set_color red)"("(set_color white)"$user" \ (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \ - (set_color white)$relative(set_color red)")"(set_color red)"\n╰"(set_color white)"⮞ " + (set_color white)$relative(set_color red)")"(set_color red)"\n╰"(set_color normal)"⮞ " else # if in any other dir echo -e (set_color white)"╭"(set_color red)"("(set_color white)"$user" \ (set_color red)"⮞"(set_color white)"⮞"(set_color red)"⮞" \ - (set_color white)$cwd(set_color red)")"(set_color red)"\n╰"(set_color white)"⮞ " + (set_color white)$cwd(set_color red)")"(set_color red)"\n╰"(set_color normal)"⮞ " end end - -# fish_right_prompt -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 - - if test $color = "white" - set colorInverse red - else - set color white - end - - # set date in dt - set dt $(date '+%Y-%m-%d %H:%M') - - # print prompt - echo -e (set_color $colorInverse)"( "(set_color $color)"$last_status"(set_color $colorInverse)" | "(set_color $color)"$dt"(set_color $colorInverse)" )" -end -- cgit v1.3.1