diff options
| author | jstmax! <87650746+jstmaxlol@users.noreply.github.com> | 2024-12-11 21:17:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 21:17:33 +0100 |
| commit | 1eed371c3e664ce933e6e380ccf83bcf7332603e (patch) | |
| tree | bf7bab25562678397cf71e10456dcc4cff8fe1c8 | |
| parent | aa05c8930d7918ba42e14b49ec2a2b74de27f232 (diff) | |
Create fish_right_prompt.fish
| -rw-r--r-- | towget/fish_right_prompt.fish | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/towget/fish_right_prompt.fish b/towget/fish_right_prompt.fish new file mode 100644 index 0000000..cb10121 --- /dev/null +++ b/towget/fish_right_prompt.fish @@ -0,0 +1,11 @@ +function fish_right_prompt + set last_status $status + + # check for which color to use + if test $last_status -eq 0 + set color green + else + set color red + end + echo -e (set_color $color)"[$last_status]" +end |