Merge remote-tracking branch 'origin/merge-requests/288'

This commit is contained in:
Julian Ospald 2022-11-10 23:00:06 +08:00
commit c07e1bbc8f
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -403,7 +403,11 @@ download_ghcup() {
find_shell() {
case $SHELL in
*/zsh) # login shell is zsh
GHCUP_PROFILE_FILE="$HOME/.zshrc"
if [ -n "$ZDOTDIR" ]; then
GHCUP_PROFILE_FILE="$ZDOTDIR/.zshrc"
else
GHCUP_PROFILE_FILE="$HOME/.zshrc"
fi
MY_SHELL="zsh" ;;
*/bash) # login shell is bash
GHCUP_PROFILE_FILE="$HOME/.bashrc"