From a17a692c0abe5bfa6365be41129088fae87a0125 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 21 Nov 2020 15:50:45 +0530 Subject: changed the prompt a bit --- fish/functions/fish_prompt.fish | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 fish/functions/fish_prompt.fish (limited to 'fish/functions/fish_prompt.fish') 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 -- cgit v1.2.3