diff --git a/ext/setup-csharp.sh b/ext/setup-csharp.sh index 4d3157b17..9d0ceb478 100755 --- a/ext/setup-csharp.sh +++ b/ext/setup-csharp.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash -cd ~/.emacs.d/ext -source ./VARS +source VARS # echo "Setting up C# (omnisharp)" diff --git a/ext/setup-rust.sh b/ext/setup-rust.sh index 590c43a5e..4b392b30b 100755 --- a/ext/setup-rust.sh +++ b/ext/setup-rust.sh @@ -1,11 +1,23 @@ #!/usr/bin/env bash -cd ~/.emacs.d/ext -source ./VARS +source VARS # echo "Setting up Rust" +case "$OSTYPE" in + darwin*) + brew install rust + ;; + linux*) + if is-arch; then + sudo pacman --noconfirm -S rust cargo + elif is-deb; then + echo ... + exit 1 + fi +esac + git-repo "https://github.com/rust-lang/rust.git" "rust" git-repo "https://github.com/phildawes/racer.git" "racer-src" diff --git a/ext/setup-sh.sh b/ext/setup-sh.sh index e9306d23b..49a1ca27d 100755 --- a/ext/setup-sh.sh +++ b/ext/setup-sh.sh @@ -1,11 +1,12 @@ #!/usr/bin/env bash -cd ~/.emacs.d/ext -source ./VARS +source VARS # echo "Setting up zsh/bash (zshdb, bashdb)" if is-mac; then brew install zshdb bashdb +elif is-arch; then + sudo pacman --noconfirm -S zshdb bashdb fi