From 2140ab51deed88e90eafebf9520fa5f9995dc7c9 Mon Sep 17 00:00:00 2001 From: twells46 <173561638+twells46@users.noreply.github.com> Date: Wed, 31 Dec 2025 13:28:05 -0600 Subject: Migrate from stow --- dot_config/fish/functions/fish_prompt.fish | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dot_config/fish/functions/fish_prompt.fish (limited to 'dot_config/fish/functions/fish_prompt.fish') diff --git a/dot_config/fish/functions/fish_prompt.fish b/dot_config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..415f452 --- /dev/null +++ b/dot_config/fish/functions/fish_prompt.fish @@ -0,0 +1,10 @@ +function fish_prompt + set -l last_status $status + # Prompt status only if it's not 0 + set -l stat + if test $last_status -ne 0 + set stat (set_color red)" [$last_status] "(set_color normal) + end + + string join '' -- (set_color green) (prompt_pwd -D 50) (set_color normal) $stat '> ' +end -- cgit v1.2.3