summaryrefslogtreecommitdiff
path: root/cfg
diff options
context:
space:
mode:
authorjStmaX! <87650746+jstmaxlol@users.noreply.github.com>2025-09-26 21:39:39 +0200
committerGitHub <noreply@github.com>2025-09-26 21:39:39 +0200
commit69353b063c5605138e0b68e5fefbea06f1ec7262 (patch)
tree1ce483ae09c0492169b8040d974faeaf3e20b453 /cfg
parent339198d3473efee66afb89b9a3b80ee35a2ac766 (diff)
update fish_prompt[s]
Diffstat (limited to 'cfg')
-rw-r--r--cfg/fish_prompt[s].fish28
1 files changed, 17 insertions, 11 deletions
diff --git a/cfg/fish_prompt[s].fish b/cfg/fish_prompt[s].fish
index 7cadb12..af447ce 100644
--- a/cfg/fish_prompt[s].fish
+++ b/cfg/fish_prompt[s].fish
@@ -5,10 +5,11 @@ function fish_prompt
set -l home $HOME
if test "$cwd" = "$home"
- echo -e "$user"(set_color green)"~"(set_color white)" => "
+ echo -e (set_color white)"("(set_color green)"$user"(set_color magenta)"~"(set_color white)")"(set_color normal)"\n⮞ "
else if string match -q "$home/*" $cwd
- set -l relative (string replace "$home/" "~/" $cwd)
- echo -e "$user"(set_color green)$relative(set_color white)" => "
+ set -l relative (string replace "$home/" "~/" $cwd)
+ echo -e (set_color white)"("(set_color green)"$user"(set_color magenta)$relative(set_color white)")"(set_color normal)"\n⮞ "
+ #echo -e "$user"(set_color green)$relative(set_color white)" => "
else
echo -e "$user"(set_color green)$cwd(set_color white)" => "
end
@@ -16,13 +17,18 @@ end
# fish_right_prompt
function fish_right_prompt
- set last_status $status
+ 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]"
+ # check for which color to use
+ if test $last_status -eq 0
+ set color green
+ else
+ set color red
+ end
+
+ # set date in dt
+ set dt $(date '+%Y-%m-%d %H:%M')
+
+ # print prompt
+ echo -e (set_color white)"( "(set_color $color)"$last_status"(set_color white)" | "(set_color $color)"$dt"(set_color white)" )"
end