-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·42 lines (32 loc) · 941 Bytes
/
install.sh
File metadata and controls
executable file
·42 lines (32 loc) · 941 Bytes
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
#!/usr/local/bin/zsh
set -u
# exec DIR
THIS_DIR=$(cd $(dirname $0); pwd)
cd $THIS_DIR
# submodule update
git submodule update --init --recursive
git submodule foreach git pull origin master
git submodule foreach git checkout master
echo "start setup..."
# dotfiles link
for f in .??*; do
[ "$f" = ".git" ] && continue
[ "$f" = ".gitignore" ] && continue
[ "$f" = ".gitmodules" ] && continue
[ "$f" = ".DS_Store" ] && continue
ln -snfv ~/dotfiles/"$f" ~/
done
# zprezto
setopt EXTENDED_GLOB
for rcfile in ${ZDOTDIR:-$HOME}/.zprezto/runcoms/??*; do
# except "README.md" but not work
[ "$rcfile" = "${ZDOTDIR:-$HOME}/.zprezto/runcoms/README.md" ] && continue
ln -snfv "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
cat << END
**************************************************
DOTFILES SETUP FINISHED!
CHANGE ITERM2 FONT POWERLINE
RESTART SHELL.
**************************************************
END