-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_common.sh
More file actions
executable file
·71 lines (58 loc) · 1.9 KB
/
setup_common.sh
File metadata and controls
executable file
·71 lines (58 loc) · 1.9 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
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
70
71
#!/bin/zsh
if [ ! -d "$HOME/.oh-my-zsh" ]; then
echo "Setting up oh-my-zshs"
git clone https://github.com/ohmyzsh/ohmyzsh.git $HOME/.oh-my-zsh
fi
if [ ! -d "$HOME/.zsh" ]; then
echo "Linking zsh configs"
ln -sf $HOME/dotfiles/zsh/.zsh $HOME/
ln -sf $HOME/dotfiles/zsh/.zshenv $HOME/
ln -sf $HOME/dotfiles/zsh/.zshrc $HOME/
fi
if [ ! -d "$HOME/.config/starship.toml" ]; then
echo "Linking starship configs"
mkdir -p ~/.config
ln -sf $HOME/dotfiles/starship/starship.toml $HOME/.config/
fi
if [ ! -d "$HOME/.vim" ]; then
echo "Setting up vim"
ln -sf $HOME/dotfiles/vim/.vimrc $HOME/
mkdir -p $HOME/.vim/bundle
mkdir -p $HOME/.vim/colors
curl https://raw.githubusercontent.com/garybernhardt/dotfiles/master/.vim/colors/grb256.vim -o $HOME/.vim/colors/grb256.vim
git clone https://github.com/gmarik/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim
vim +PluginInstall +q +q
fi
if [ ! -f "$HOME/.gitconfig" ]; then
echo "Linking git configs"
ln -sf $HOME/dotfiles/git/.gitconfig $HOME/
ln -sf $HOME/dotfiles/git/.gitignore_global $HOME/
fi
if [ ! -d "$HOME/bin" ]; then
echo "Linking bin scripts"
mkdir $HOME/bin
ln -sf $HOME/dotfiles/bin/* $HOME/bin/
fi
if [ ! -f "$HOME/.tmux.conf" ]; then
echo "Setting up tmux"
ln -sf $HOME/dotfiles/tmux/.tmux.conf $HOME/
git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm
fi
if [ ! -f "$HOME/.ctags" ]; then
echo "Linking ctags configs"
ln -sf $HOME/dotfiles/ctags/.ctags $HOME/
fi
if [ ! -d "$HOME/.bundle" ]; then
echo "Linking bundler configs"
mkdir $HOME/.bundle
ln -sf $HOME/dotfiles/bundle/config $HOME/.bundle/config
fi
if [ ! -d "$HOME/.cargo" ]; then
echo "Installing installing rust"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
fi
if [ ! -d "$HOME/.nvm" ]; then
echo "Installing NVM"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
fi
source ~/.zshrc