-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·65 lines (46 loc) · 2.42 KB
/
setup.sh
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
echo "---------------------------------------------------------"
echo "$(tput setaf 2)can-env: Installation starting.$(tput sgr 0)"
echo "---------------------------------------------------------"
INSTALLDIR=$PWD # Make this configurable
mkdir -p $HOME/.local/share/nvim/backup # This is going to be used as a backup folder for nvim
unamestr=`uname`;
if [[ "$unamestr" == 'Darwin' ]]; then
source "scripts/setup-system-packages.mac.sh"
source "scripts/setup-fonts.mac.sh"
elif [[ "$unamestr" == 'Linux' ]]; then
echo "Linux support incoming"
source "scripts/setup-system-packages.mac.sh"
fi
echo "---------------------------------------------------------"
echo "$(tput setaf 2)can-env: Installing asdf.$(tput sgr 0)"
echo "---------------------------------------------------------"
source scripts/setup-asdf.sh
echo "---------------------------------------------------------"
echo "$(tput setaf 2)can-env: Installing languages packages.$(tput sgr 0)"
echo "---------------------------------------------------------"
source scripts/setup-packages.sh
echo "---------------------------------------------------------"
echo "$(tput setaf 2)can-env: Installing oh-my-zsh.$(tput sgr 0)"
echo "---------------------------------------------------------"
source scripts/setup-zsh.sh
echo "---------------------------------------------------------"
echo "$(tput setaf 2)can-env: Installing Neovim plugins and linking dotfiles.$(tput sgr 0)"
echo "---------------------------------------------------------"
source scripts/setup-nvim.sh
echo "---------------------------------------------------------"
echo "$(tput setaf 2)JARVIS: Installing tmux plugin manager.$(tput sgr 0)"
echo "---------------------------------------------------------"
if [ ! -d "$HOME/.tmux/plugins/tpm" ]; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux/plugins/tpm/scripts/install_plugins.sh
fi
echo "---------------------------------------------------------"
echo "$(tput setaf 2)can-env: Switching shell to zsh. You may need to logout.$(tput sgr 0)"
echo "---------------------------------------------------------"
sudo sh -c "echo $(which zsh) >> /etc/shells"
chsh -s $(which zsh)
echo "---------------------------------------------------------"
echo "$(tput setaf 2)can-env: System update complete. Currently running at 100% power. Enjoy.$(tput sgr 0)"
echo "---------------------------------------------------------"
exit 0