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
Some of the sample fish prompts (in share/tools/web_config) run hostname every time the prompt is displayed. That command can be slow if, for example, there is a problem with DNS. All of the prompts should use this pattern:
# Just calculate this once, to save a few cycles when displaying the prompt
if not set -q __fish_prompt_hostname
set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
end
That's from share/functions/fish_prompt.fish. Obviously we can now do it slightly faster using the string builtin.
Some of the sample fish prompts (in share/tools/web_config) run
hostname
every time the prompt is displayed. That command can be slow if, for example, there is a problem with DNS. All of the prompts should use this pattern:That's from share/functions/fish_prompt.fish. Obviously we can now do it slightly faster using the
string
builtin.This issue was triggered by issue #3479.
The text was updated successfully, but these errors were encountered: