Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jxxcarlson/8202938cd4c5eb72d8b5086995880700 to your computer and use it in GitHub Desktop.
Save jxxcarlson/8202938cd4c5eb72d8b5086995880700 to your computer and use it in GitHub Desktop.
Bash script to switch between Agda libraries
#!/bin/sh
STD_LIB=/usr/local/lib/agda/src/
IAL_LIB=/Users/carlson/dev/agda/ial/
case $1 in
show) cat ~/.agda/defaults
;;
std) echo "standard-library\n" > ~/.agda/defaults ;;
ial) echo "ial\n" > ~/.agda/defaults ;;
path:std) echo ${STD_LIB} ;;
path:ial) echo ${IAL_LIB} ;;
ls:std) ls ${STD_LIB} ;;
ls:ial) ls ${IAL_LIB} ;;
*) echo "\n arguments: std, ial, path:std, path:ial,\n ls:std, ls:ial, show\n\n Example: setadga std (set Agda library to the standard one)\n"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment