From 623e1766dd0e2db2a70106d3597f8e8915c78d95 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Thu, 12 Sep 2024 16:49:23 +0800 Subject: [PATCH] cmd/shellenv: use long flags for fish This will make the output more readable. We tend to prefer long flags elsewhere anyway. --- Library/Homebrew/cmd/shellenv.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/cmd/shellenv.sh b/Library/Homebrew/cmd/shellenv.sh index d8f6f7d1ab..0779c5cc70 100644 --- a/Library/Homebrew/cmd/shellenv.sh +++ b/Library/Homebrew/cmd/shellenv.sh @@ -37,12 +37,12 @@ homebrew-shellenv() { case "${HOMEBREW_SHELL_NAME}" in fish | -fish) - echo "set -gx HOMEBREW_PREFIX \"${HOMEBREW_PREFIX}\";" - echo "set -gx HOMEBREW_CELLAR \"${HOMEBREW_CELLAR}\";" - echo "set -gx HOMEBREW_REPOSITORY \"${HOMEBREW_REPOSITORY}\";" - echo "fish_add_path -gmP \"${HOMEBREW_PREFIX}/bin\" \"${HOMEBREW_PREFIX}/sbin\";" - echo "if test -n \"\$MANPATH[1]\"; set -gx MANPATH '' \$MANPATH; end;" - echo "if not contains \"${HOMEBREW_PREFIX}/share/info\" \$INFOPATH; set -gx INFOPATH \"${HOMEBREW_PREFIX}/share/info\" \$INFOPATH; end;" + echo "set --global --export HOMEBREW_PREFIX \"${HOMEBREW_PREFIX}\";" + echo "set --global --export HOMEBREW_CELLAR \"${HOMEBREW_CELLAR}\";" + echo "set --global --export HOMEBREW_REPOSITORY \"${HOMEBREW_REPOSITORY}\";" + echo "fish_add_path --global --move --path \"${HOMEBREW_PREFIX}/bin\" \"${HOMEBREW_PREFIX}/sbin\";" + echo "if test -n \"\$MANPATH[1]\"; set --global --export MANPATH '' \$MANPATH; end;" + echo "if not contains \"${HOMEBREW_PREFIX}/share/info\" \$INFOPATH; set --global --export INFOPATH \"${HOMEBREW_PREFIX}/share/info\" \$INFOPATH; end;" ;; csh | -csh | tcsh | -tcsh) echo "setenv HOMEBREW_PREFIX ${HOMEBREW_PREFIX};"