Skip to content

Instantly share code, notes, and snippets.

@pikajude
Created September 16, 2019 20:13
Show Gist options
  • Save pikajude/821dc19482907c9d81b4c430847634b7 to your computer and use it in GitHub Desktop.
Save pikajude/821dc19482907c9d81b4c430847634b7 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1
argv=( "$@" )
argv=( "${argv[@]/\'/\'\\\'\'}" )
argv=( "${argv[@]/#/\'}" )
argv=( "${argv[@]/%/\'}" )
export HIE=1
exec nix-shell --run "hie ${argv[*]}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment