diff options
Diffstat (limited to 'jstmax_fish_prompts.fish')
| -rw-r--r-- | jstmax_fish_prompts.fish | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/jstmax_fish_prompts.fish b/jstmax_fish_prompts.fish new file mode 100644 index 0000000..95f0db9 --- /dev/null +++ b/jstmax_fish_prompts.fish @@ -0,0 +1,21 @@ +# fish_prompt +function fish_prompt + if test "$PWD" = "/home/maxlol" + echo -e (set_color green)$USER(set_color white)"@"(set_color green)"~"\n(set_color white)":: " + else + echo -e (set_color green)$USER(set_color white)"@"(set_color green)$PWD\n(set_color white)":: " + 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 green + else + set color red + end + echo -e (set_color $color)"[$last_status]" +end |