Skip to content

Opening msys2 shell using the created shortcut does not honour `/x/ghcup/env`

  • The env is sourced in ~/.bashrc but the shortcut (the standard way to opn it: X:\ghcup\msys64\msys2_shell.cmd -mingw64) uses ~/.bash_profile (see https://superuser.com/questions/405342/mingw-bash-profile)
  • So creating ~/.bash_profile with if [ -f ~/.bashrc ]; then . ~/.bashrc; fi makes it work (and cabal, ghc and friends are in path as expected)
  • Should ghcup create such a file? If that is not the case we should document it
Edited by Javier Neira
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information