summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cfg/fish_prompt[s].fish31
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