diff options
| author | jStmaX! <87650746+jstmaxlol@users.noreply.github.com> | 2025-10-01 11:29:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-01 11:29:57 +0200 |
| commit | 2217bd0341be66ec4887facb7daeebe16771dc60 (patch) | |
| tree | de3dccad355ec3720e950d27ba377778b298f9f1 | |
| parent | d66c9083e20c4ddce680ee4ac10c0606b4de6575 (diff) | |
##
| -rw-r--r-- | cfg/fish_prompt[s].fish | 31 |
1 files changed, 3 insertions, 28 deletions
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 |