summaryrefslogtreecommitdiff
path: root/functions/fish_right_prompt.fish
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-08-15 18:31:22 +0200
committerjaseg <git@jaseg.de>2022-08-15 18:31:22 +0200
commit16a7b26fd53731370708e30fc8fd81b5fc331e57 (patch)
treea5d824ec11c4a6934422f7e7553b4c207016eba4 /functions/fish_right_prompt.fish
downloaduseful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.tar.gz
useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.tar.bz2
useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.zip
Initial commitmain
Diffstat (limited to 'functions/fish_right_prompt.fish')
-rw-r--r--functions/fish_right_prompt.fish10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions/fish_right_prompt.fish b/functions/fish_right_prompt.fish
new file mode 100644
index 0000000..4fc17d1
--- /dev/null
+++ b/functions/fish_right_prompt.fish
@@ -0,0 +1,10 @@
+function fish_right_prompt
+ set stat $status
+
+ printf "\e[38;5;244m%s\e[0m " (date +%H:%M)
+
+ if test $stat -ne 0
+ printf "\e[91m(%d) " $stat
+ end
+ printf "\e[37m%s\e[0m" (__fish_git_prompt "%s")
+end