[Shell] Racket mode setup

This commit is contained in:
Ivan Malison 2016-10-09 23:00:10 -07:00
parent 7df5e7ce1d
commit f944c478b2
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -16,6 +16,7 @@ function _setup_env {
_haskell_setup
_java_setup
_go_setup
_racket_setup
_rust_setup
_tex_setup
@ -112,6 +113,17 @@ function _tex_setup {
is_osx && add_to_path "/Library/TeX/texbin/"
}
function _racket_setup {
if command_exists; then
if is_osx; then
local racket_base_path="$(brew --prefix racket)"
# XXX: Seems maybe this is not needed
# local newest_version_number="$(ls \"$racket_base_path\" | sort -Vr | head -n1)"
add_to_path "$racket_base_path/bin" --before
fi
fi
}
function _emacs_setup {
add_to_path "$HOME/.evm/bin" "$HOME/.cask/bin" --before
command_exists evm || curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash