-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·34 lines (25 loc) · 948 Bytes
/
install.sh
File metadata and controls
executable file
·34 lines (25 loc) · 948 Bytes
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
#!/bin/bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
initialize () {
case ${OSTYPE} in
darwin*)
;;
linux*)
sudo apt install zsh
;;
*)
echo "==========>>> $(tput setaf 1)Working only OSX / Ubuntu!!$(tput sgr0) <<<=========="
exit 1
;;
esac
[ ${SHELL} != "/bin/zsh" ] && chsh -s /bin/zsh
[ ! -d ${HOME}/.nvm ] && git clone https://github.com/creationix/nvm.git ${HOME}/.nvm
[ ! -d ${HOME}/.oh-my-zsh ] && sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
if [ ! -d ${HOME}/.oh-my-zsh/custom/themes/powerlevel9k ]; then
mkdir -p ${HOME}/.oh-my-zsh/custom/themes/powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ${HOME}/.oh-my-zsh/custom/themes/powerlevel9k
fi
[ ! -d ${HOME}/.zplug ] && git clone https://github.com/zplug/zplug.git ${HOME}/.zplug
}
initialize