You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function fish_mode_prompt --description'Write out the mode prompt; do not replace this. Instead, change fish_mode_prompt before sourcing .iterm2_shell_integration.fish, or modify iterm2_fish_mode_prompt instead.'
function fish_mode_prompt --description'Write out the mode prompt; do not replace this. Instead, change fish_mode_prompt before sourcing .iterm2_shell_integration.fish, or modify iterm2_fish_mode_prompt instead.'
85
+
iterm2_common_prompt
86
+
iterm2_fish_mode_prompt
75
87
end
76
88
77
89
functionfish_prompt--description'Write out the prompt; do not replace this. Instead, change fish_prompt before sourcing .iterm2_shell_integration.fish, or modify iterm2_fish_prompt instead.'
78
-
# Remove the trailing newline from the original prompt. This is done
79
-
# using the string builtin from fish, but to make sure any escape codes
80
-
# are correctly interpreted, use %b for printf.
81
-
printf"%b" (string join"\n" (iterm2_fish_prompt))
90
+
# Remove the trailing newline from the original prompt. This is done
91
+
# using the string builtin from fish, but to make sure any escape codes
92
+
# are correctly interpreted, use %b for printf.
93
+
printf"%b" (string join"\n" (iterm2_fish_prompt))
82
94
83
-
iterm2_prompt_end
95
+
iterm2_prompt_end
84
96
end
85
97
else
86
-
# Pre-2.2 path
87
-
functionfish_prompt--description'Write out the prompt; do not replace this. Instead, change fish_prompt before sourcing .iterm2_shell_integration.fish, or modify iterm2_fish_prompt instead.'
88
-
# Save our status
89
-
set-l last_status $status
98
+
# fish_mode_prompt is empty or unset.
99
+
functionfish_prompt--description'Write out the mode prompt; do not replace this. Instead, change fish_mode_prompt before sourcing .iterm2_shell_integration.fish, or modify iterm2_fish_mode_prompt instead.'
0 commit comments