Skip to content

Instantly share code, notes, and snippets.

@for2ando
Created July 3, 2022 13:26
Show Gist options
  • Save for2ando/39602d8aba50c8548843863d209d4d9f to your computer and use it in GitHub Desktop.
Save for2ando/39602d8aba50c8548843863d209d4d9f to your computer and use it in GitHub Desktop.
Ghcup setup script. I put it on ~/.bashrc.d/ghcup.
#!/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