aboutsummaryrefslogtreecommitdiff
path: root/fish/functions/fish_prompt.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish/functions/fish_prompt.fish')
-rw-r--r--fish/functions/fish_prompt.fish23
1 files changed, 23 insertions, 0 deletions
diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish
new file mode 100644
index 00000000..b8371e5c
--- /dev/null
+++ b/fish/functions/fish_prompt.fish
@@ -0,0 +1,23 @@
+set __fish_git_prompt_showcolorhints
+
+set __fish_git_prompt_color_branch 0a4efc --bold
+set __fish_git_prompt_color_dirtystate white
+set __fish_git_prompt_color_invalidstate red
+set __fish_git_prompt_color_merging yellow
+set __fish_git_prompt_color_stagedstate yellow
+set __fish_git_prompt_color_upstream_ahead green
+set __fish_git_prompt_color_upstream_behind red
+
+function fish_prompt
+ set last_status $status
+
+ set_color fc0a4a --bold
+ printf '%s' (prompt_pwd)
+
+ set_color normal
+ printf '%s ' (__fish_git_prompt)
+ set_color 5c64db
+
+ echo -n " "
+ set_color normal
+end