Skip to content

Commit 0f5aae7

Browse files
committed
better names
1 parent 0a70d33 commit 0f5aae7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/vs/workbench/contrib/terminal/browser/media/fish_xdg_data/fish/vendor_conf.d/shellIntegration.fish

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,30 @@ function __vsc_cmd_clear --on-event fish_cancel
9999
end
100100
101101
# Preserve the user's existing prompt, to wrap in our escape sequences.
102-
function init_vscode_shell_integration --on-event fish_prompt
102+
function __preserve_fish_prompt --on-event fish_prompt
103103
if functions --query fish_prompt
104104
if functions --query __vsc_fish_prompt
105105
# Erase the fallback so it can be set to the user's prompt
106106
functions --erase __vsc_fish_prompt
107107
end
108108
functions --copy fish_prompt __vsc_fish_prompt
109-
functions --erase init_vscode_shell_integration
109+
functions --erase __preserve_fish_prompt
110110
# Now __vsc_fish_prompt is guaranteed to be defined
111-
__set_shell_integration_fish_prompt
111+
__init_vscode_shell_integration
112112
else
113113
if functions --query __vsc_fish_prompt
114114
# There is no fish_prompt set, so stick with the default
115-
functions --erase init_vscode_shell_integration
115+
functions --erase __preserve_fish_prompt
116116
# Now __vsc_fish_prompt is guaranteed to be defined
117-
__set_shell_integration_fish_prompt
117+
__init_vscode_shell_integration
118118
else
119119
function __vsc_fish_prompt
120120
echo -n (whoami)@(prompt_hostname) (prompt_pwd) '~> '
121121
end
122122
end
123123
end
124124
end
125-
init_vscode_shell_integration
125+
__preserve_fish_prompt
126126

127127
# Sent whenever a new fish prompt is about to be displayed.
128128
# Updates the current working directory.
@@ -157,7 +157,7 @@ end
157157
# Preserve and wrap fish_mode_prompt (which appears to the left of the regular
158158
# prompt), but only if it's not defined as an empty function (which is the
159159
# officially documented way to disable that feature).
160-
function __set_shell_integration_fish_prompt
160+
function __init_vscode_shell_integration
161161
if __vsc_fish_has_mode_prompt
162162
functions --copy fish_mode_prompt __vsc_fish_mode_prompt
163163

0 commit comments

Comments
 (0)