-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript-setup.sh
More file actions
41 lines (33 loc) · 1.07 KB
/
Copy pathscript-setup.sh
File metadata and controls
41 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
DEVENV=${HOME}/dev/src/latrokles
DOTFILES=${DEVENV}/dotfiles
OS=$(uname -s)
case "$OS" in
Darwin)
echo "Operating System: macOS"
export PATH=${HOME}/.local/bin:${PATH}
ln -s ${DOTFILES}/config/emacs.d ~/.emacs.d
ln -s ${DOTFILES}/config/phoenix.js ~/.phoenix.js
ln -s ${DOTFILES}/config/zprofile-macos ~/.zprofile
echo "source ${DOTFILES}/config/zshenv-macos" > ~/.zshenv
bash ${DOTFILES}/config/defaults-macos
# setup homebrew
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
brew bundle --file ${DOTFILES}/config/Brewfile
/opt/homebrew/bin/brew shellenv >> ~/.zshenv
# setup java
if [ "$USER" == "latrokles" ]; then
brew bundle --file ${DOTFILES}/config/Brewfile-java
echo "export PATH=/opt/homebrew/opt/openjdk/bin:$PATH" >> ~/.zshenv
fi
# setup rust
echo '. "${HOME}/.cargo/env"' >> ~/.zshenv
echo "done!"
;;
Linux)
echo "Operating System: Linux"
;;
*)
echo "Operating System: Unsupported"
;;
esac