-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·47 lines (42 loc) · 1.09 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/zsh
set -e
ROOT=${1:-~}
function main {
test -d "$ROOT/.config" || mkdir -p "$ROOT/.config"
update_git
install_packages
}
function install_packages {
install "tmuxinator"
install "ag/agignore" ".agignore"
install "git/gitmessage" ".gitmessage"
install "git/gitignore_global" ".gitignore_global"
install "grunt"
install "tmux/tmux.conf" ".tmux.conf"
install "tmux/dottmux" ".tmux"
install "vim/vimrc" ".vimrc"
install "vim/gvimrc" ".gvimrc"
install "vim/dotvim" ".vim"
install "zsh/oh-my-zsh/" ".oh-my-zsh"
install "zsh/extensions/plugins/cw" ".oh-my-zsh/plugins/cw"
install "zsh/extensions/themes/clauswitt.zsh-theme" ".oh-my-zsh/themes/clauswitt.zsh-theme"
install "zsh/zshrc" ".zshrc"
install "zsh/zshenv" ".zshenv"
install "zsh/profile" ".profile"
install "Scripts" "Scripts"
install "ruby/gemrc" ".gemrc"
install "ruby/irbrc" ".irbrc"
install "bin" "bin"
}
function install() {
TARGET=$ROOT/${2:-.$1}
if [[ -e $TARGET ]]; then
rm -rf $TARGET
fi
ln -nfs $PWD/$1 $TARGET
}
function update_git {
git submodule init
git submodule update
}
main