Created
June 12, 2019 16:10
-
-
Save jxxcarlson/8202938cd4c5eb72d8b5086995880700 to your computer and use it in GitHub Desktop.
Bash script to switch between Agda libraries
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 | |
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