From f944c478b2f985354de9e89ca56992a6578e4e2a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 9 Oct 2016 23:00:10 -0700 Subject: [PATCH] [Shell] Racket mode setup --- dotfiles/lib/shellpath.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dotfiles/lib/shellpath.sh b/dotfiles/lib/shellpath.sh index 28ebfdcd..7bd5297c 100644 --- a/dotfiles/lib/shellpath.sh +++ b/dotfiles/lib/shellpath.sh @@ -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