aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2024-01-16 12:51:01 +0100
committerMartin Polden <mpolden@mpolden.no>2024-01-16 12:51:01 +0100
commit5d786dbbf20a0d56c5b623643c70e6680036ffaa (patch)
tree6652c704915af77f5796ebde5e42d2b55c43c71f
parent092d8fbe109a0abc55d3a829daad91a18dafe34c (diff)
fish: rename variable
-rw-r--r--fish_prompt.fish6
1 files changed, 3 insertions, 3 deletions
diff --git a/fish_prompt.fish b/fish_prompt.fish
index 8ec453e..ffe0f72 100644
--- a/fish_prompt.fish
+++ b/fish_prompt.fish
@@ -21,12 +21,12 @@ function fish_prompt --description "Write out the prompt"
# Color prompt symbol based on exit status. Inspired by
# https://solovyov.net/blog/2020/useful-shell-prompt/
- set __prompt_symbol '$'
+ set prompt_symbol '$'
if [ $last_status -ne 0 ]
- set __prompt_symbol "$(set_color yellow)\$$normal"
+ set prompt_symbol "$(set_color yellow)\$$normal"
end
# Print prompt
echo -n -s $ssh_prefix (set_color $fish_color_cwd) (prompt_pwd) \
- $normal (__fish_git_prompt " %s") $normal $__prompt_symbol " "
+ $normal (__fish_git_prompt " %s") $normal $prompt_symbol " "
end