aboutsummaryrefslogtreecommitdiff
path: root/fish/functions
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-11-21 15:50:45 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-11-21 15:50:45 +0530
commita17a692c0abe5bfa6365be41129088fae87a0125 (patch)
tree3ba11f5b1115daba4866e47f61b2ae3e05bdccd0 /fish/functions
parent7f5e6f599b6da8a4a764f06966dbd38146a613af (diff)
changed the prompt a bit
Diffstat (limited to 'fish/functions')
-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