-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·49 lines (36 loc) · 1.12 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
#!/bin/bash
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p ~/.config
mkdir -p ~/.atom
# From https://github.com/sjl/dotfiles/blob/master/bin/bootstrap.sh
function ensure_link {
test -L "$HOME/$2" || ln -s "$DOTFILES_DIR/$1" "$HOME/$2"
}
# Vim
ensure_link "vim" ".vim"
ensure_link "vimrc" ".vimrc"
# Zsh & Prezto
ensure_link "zsh/zshrc" ".zshrc"
ensure_link "zsh/zlogin" ".zlogin"
ensure_link "zsh/zpreztorc" ".zpreztorc"
# Git
ensure_link "git/gitconfig" ".gitconfig"
# Pentadactyl
ensure_link "pentadactyl" ".pentadactyl"
ensure_link "pentadactylrc" ".pentadactylrc"
# Tmux
ensure_link "tmux.conf" ".tmux.conf"
# CTags
ensure_link "ctags" ".ctags"
# Powerline
ensure_link "powerline" ".config/powerline"
# Ack
ensure_link "ackrc" ".ackrc"
# ESLint
ensure_link "eslintrc" ".eslintrc"
# Atom
ensure_link "atom/init.cson" ".atom/init.cson"
ensure_link "atom/config.cson" ".atom/config.cson"
ensure_link "atom/keymap.cson" ".atom/keymap.cson"
ensure_link "atom/snippets.cson" ".atom/snippets.cson"
ensure_link "atom/styles.less" ".atom/styles.less"