-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·31 lines (27 loc) · 1022 Bytes
/
install.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
#!/bin/sh
if [ ! -d ~/.oh-my-zsh ]
then
echo "=> Installing oh-my-zsh ..."
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
fi
if [ -d "$HOME/.dotfiles" ]; then
echo "=> dotfiles is already installed in $HOME/.dotfiles, trying to update"
echo "=> "
cd "$HOME"/.dotfiles && git pull
else
echo "=> clone dotfiles from Github..."
git clone https://github.com/hanksudo/dotfiles.git "$HOME"/.dotfiles
cd "$HOME"/.dotfiles || exit
fi
echo ""
"$HOME"/.dotfiles/brew.sh
"$HOME"/.dotfiles/pip.sh
"$HOME"/.dotfiles/goinstall.sh
"$HOME"/.dotfiles/vscode-extensions.sh
npm install -g npm
xargs npm i -g < npmfile
"$HOME"/.dotfiles/bootstrap.sh
# imgcat
curl -sL https://iterm2.com/utilities/imgcat -o ~/bin/imgcat && chmod +x ~/bin/imgcat
# pypi-info - Script to auto generate Python package info on requirements.txt
curl -L https://raw.githubusercontent.com/hanksudo/pypi-info-generator/master/pypi-info.sh -o ~/bin/pypi-info && chmod +x ~/bin/pypi-info