Repository: starship/starship
File: install/install.sh (Shell)

Code before:
      "${config_cmd}"
  done

  for s in "elvish" "nushell"
  do

    warning="${BOLD}Warning${NO_COLOR}"
    case ${s} in
      elvish )
        # shellcheck disable=SC2088
        config_file="~/.elvish/rc.elv"
        config_cmd="eval (starship init elvish)"
        warning="${warning} Only elvish v0.17 or higher is supported."
        ;;
      nushell )
        # shellcheck disable=SC2088
        config_file="${BOLD}your nu config file${NO_COLOR} (find it by running ${BOLD}\$nu.config-path${NO_COLOR} in Nushell)"
        config_cmd="\`use ~/.cache/starship/init.nu\`"
        warning="${warning} This will change in the future.
  Only Nushell v0.78 or higher is supported.

  Add the following to the end of ${BOLD}your Nushell env file${NO_COLOR} (find it by running ${BOLD}\$nu.env-path${NO_COLOR} in Nushell):
  \`\`\`nu
  mkdir ~/.cache/starship
  starship init nu | save -f ~/.cache/starship/init.nu
  \`\`\`"
        ;;
    esac
    printf "  %s\n  %s\n  And add the following to the end of %s:\n\n\t%s\n\n" \
      "${BOLD}${UNDERLINE}${s}${NO_COLOR}" \
      "${warning}" \
      "${config_file}" \
      "${config_cmd}"
  done

  printf "  %s\n  Add the following to the end of %s:\n  %s\n\n\t%s\n\n" \
    "${BOLD}${UNDERLINE}PowerShell${NO_COLOR}" \
    "${BOLD}Microsoft.PowerShell_profile.ps1${NO_COLOR}" \
    "You can check the location of this file by querying the \$PROFILE variable in PowerShell.
  Typically the path is ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 or ~/.config/powershell/Microsoft.PowerShell_profile.ps1 on -Nix." \
    "Invoke-Expression (&starship init powershell)"

  printf "  %s\n  You need to use Clink (v1.2.30+) with Cmd. Add the following to a file %s and place this file in Clink scripts directory:\n\n\t%s\n\n" \
    "${BOLD}${UNDERLINE}Cmd${NO_COLOR}" \
    "${BOLD}starship.lua${NO_COLOR}" \
    "load(io.popen('starship init cmd'):read(\"*a\"))()"

  printf "\n"
}

is_build_available() {

Review comment (performance):
```suggestion
  Only Nushell v0.78 or higher is supported.
  Add the following to the end of ${BOLD}your Nushell env file${NO_COLOR} (find it by running ${BOLD}\$nu.env-path${NO_COLOR} in Nushell):

	mkdir ~/.cache/starship
	starship init nu | save -f ~/.cache/starship/init.nu
```

Code after:
      "${config_cmd}"
  done

  for s in "elvish" "nushell"
  do

    warning="${BOLD}Warning${NO_COLOR}"
    case ${s} in
      elvish )
        # shellcheck disable=SC2088
        config_file="~/.elvish/rc.elv"
        config_cmd="eval (starship init elvish)"
        warning="${warning} Only elvish v0.17 or higher is supported."
        ;;
      nushell )
        # shellcheck disable=SC2088
        config_file="${BOLD}your nu config file${NO_COLOR} (find it by running ${BOLD}\$nu.config-path${NO_COLOR} in Nushell)"
        config_cmd="use ~/.cache/starship/init.nu"
        warning="${warning} This will change in the future.
  Only Nushell v0.78 or higher is supported.
  Add the following to the end of ${BOLD}your Nushell env file${NO_COLOR} (find it by running ${BOLD}\$nu.env-path${NO_COLOR} in Nushell):

	mkdir ~/.cache/starship
	starship init nu | save -f ~/.cache/starship/init.nu"
        ;;
    esac
    printf "  %s\n  %s\n  And add the following to the end of %s:\n\n\t%s\n\n" \
      "${BOLD}${UNDERLINE}${s}${NO_COLOR}" \
      "${warning}" \
      "${config_file}" \
      "${config_cmd}"
  done

  printf "  %s\n  Add the following to the end of %s:\n  %s\n\n\t%s\n\n" \
    "${BOLD}${UNDERLINE}PowerShell${NO_COLOR}" \
    "${BOLD}Microsoft.PowerShell_profile.ps1${NO_COLOR}" \
    "You can check the location of this file by querying the \$PROFILE variable in PowerShell.
  Typically the path is ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 or ~/.config/powershell/Microsoft.PowerShell_profile.ps1 on -Nix." \
    "Invoke-Expression (&starship init powershell)"

  printf "  %s\n  You need to use Clink (v1.2.30+) with Cmd. Add the following to a file %s and place this file in Clink scripts directory:\n\n\t%s\n\n" \
    "${BOLD}${UNDERLINE}Cmd${NO_COLOR}" \
    "${BOLD}starship.lua${NO_COLOR}" \
    "load(io.popen('starship init cmd'):read(\"*a\"))()"

  printf "\n"
}

is_build_available() {
  arch="$1"
  platform="$2"