-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap.sh
executable file
·69 lines (56 loc) · 1.69 KB
/
bootstrap.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
62
63
64
65
66
67
68
69
#!/bin/sh
# change shell to zsh
if [ "$SHELL" != '/bin/zsh' ]; then
echo "$SHELL"
chsh -s /bin/zsh
fi
# main program
echo "=> This will install the files to: ${HOME}"
echo "=>"
# git config --global user.signingkey GPG_KEY
# git config --global user.email EMAIL
# git config --global user.name NAME
echo "=> Copying Git Configurations ..."
cp git/gitconfig ~/.gitconfig
cp git/git-global-ignore ~/.git-global-ignore
cp git/git-global-attributes ~/.git-global-attributes
which git-pr && rm "$(which git-pr)" # Remove git-pr, which broken my alias `git pull --rebase`
echo "=> Copying .zsh-theme ..."
cp -f theme/hanksudo.zsh-theme ~/.oh-my-zsh/themes/
echo "=> Copying .zshrc ..."
cp -f zsh/zshrc ~/.zshrc
echo "=> Copying .tmux.conf ..."
cp -f zsh/tmux.conf ~/.tmux.conf
echo "=> Copying .functions ..."
cp -f zsh/functions ~/.functions
echo "=> Copying .zprofile ... (if not exists)"
cp -n zsh/zprofile ~/.zprofile
echo "=> Copying .aliases ... "
cp -n zsh/aliases ~/.aliases
echo "=> Copying .pythonrc"
cp -n zsh/pythonrc ~/.pythonrc
# zsh plugin
if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting ]
then
echo "=> Installing zsh-syntax-highlighting ..."
echo "=> "
git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
fi
if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions ]
then
echo "=> Installing zsh-autosuggestions ..."
echo "=> "
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
fi
echo
sw_vers
echo
brew --version
python2 --version
python3 --version
ruby --version
echo "node $(node --version)"
go version
rustc -V
echo
echo "All done!"