diff options
| author | jStmaX! <87650746+jstmaxlol@users.noreply.github.com> | 2025-08-28 13:20:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-28 13:20:28 +0200 |
| commit | 8a0fce50b1a268ab3d91295d7011dc92a5ab18c2 (patch) | |
| tree | 8600f3c12ef68d0d03fd498a42ba51354c9a1186 /jstmax_fish_prompts.fish | |
| parent | 490563acb12c456d49c2f435b3d4efa7f515b5d4 (diff) | |
move fish prompts to cfg/
Diffstat (limited to 'jstmax_fish_prompts.fish')
| -rw-r--r-- | jstmax_fish_prompts.fish | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/jstmax_fish_prompts.fish b/jstmax_fish_prompts.fish deleted file mode 100644 index 7cadb12..0000000 --- a/jstmax_fish_prompts.fish +++ /dev/null @@ -1,28 +0,0 @@ -# fish_prompt -function fish_prompt - set -l user (set_color green)$USER(set_color white)"@" - set -l cwd $PWD - set -l home $HOME - - if test "$cwd" = "$home" - echo -e "$user"(set_color green)"~"(set_color white)" => " - else if string match -q "$home/*" $cwd - set -l relative (string replace "$home/" "~/" $cwd) - echo -e "$user"(set_color green)$relative(set_color white)" => " - else - echo -e "$user"(set_color green)$cwd(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 |