Skip to content

Instantly share code, notes, and snippets.

@kunthar
Created June 1, 2015 12:24
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 kunthar/e577f96d335286f148fc to your computer and use it in GitHub Desktop.
Save kunthar/e577f96d335286f148fc to your computer and use it in GitHub Desktop.
bash_profile
function erl_run()
{
echo "checking installed versions in /Users/kunthar/development/erlang/kerl"
echo `ls -l /Users/kunthar/development/erlang/kerl | awk '{print $9}' | cut -f1 -d'/'`
echo "select one my friend"
read input_variable
if [ -z "$input_variable" ]
then
echo "$(tput setaf 3) Release 17.0 selected as default"
echo $(tput sgr 0)
. /Users/kunthar/development/erlang/kerl/17.0/activate
erl
else
echo "$(tput setaf 2) Release $input_variable selected "
echo $(tput sgr 0)
. /Users/kunthar/development/erlang/kerl/$input_variable/activate
erl
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment