Created
February 21, 2020 01:46
-
-
Save strake/2bddd9e5b082468f95c69d7958236c9a to your computer and use it in GitHub Desktop.
Script to do a shell command with the given GHC version in the PATH
This file contains 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 | |
v=$1 | |
shift | |
PATH="$HOME/.ghcup/ghc/$v/bin:$PATH" exec "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment