Created
July 3, 2022 13:26
-
-
Save for2ando/39602d8aba50c8548843863d209d4d9f to your computer and use it in GitHub Desktop.
Ghcup setup script. I put it on ~/.bashrc.d/ghcup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if grep -q '^NAME=.*openSUSE' /etc/os-release; then | |
source "$HOME/.ghcup/env" | |
elif grep -q '^NAME=.*MSYS2' /etc/os-release; then | |
source "$(cygpath -u ${GHCUP_INSTALL_BASE_PREFIX}\\ghcup\\env)" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment