-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
executable file
·55 lines (45 loc) · 1.07 KB
/
setup
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
#!/bin/sh
if [ -z "$1" ]; then
echo "$0 [repo host]"
exit 1
else
repohost=$1
fi
# setup homedir
printf "Home is $HOME... Proceed? "
read ANS
case $ANS in
y|Y|yes|Yes|YEs|YES|yEs|yES|yeS)
true
;;
*)
echo "Quiting."
exit 0
esac
./dotfiles/bin/homesync.sh setup $(pwd)
ln -sf ~/.bashrc ~/.bash_profile
# clone ssh config repo
git clone ${private_repohost}:ssh-config.git .ssh
# clone vi configs
set -x
git clone ssh://${repohost}/vimfiles.git .vim
set +x
ln -s ~/.vim/vimrc ~/.vimrc
ln -s ~/.vim/gvimrc ~/.gvimrc
# gnupg
git clone ${private_repohost}:gnupg-config.git .gnupg
# mac
case $MACHTYPE in
*-apple-darwin*)
if [ -e "$HOME/.macports" ]; then
echo "looks like no macports, you probably want that for unix utils"
else
echo "You really probably need to install the following from macports to avoid odd behavior"
echo " bash-completion"
echo " coreutils (color ls mainly)"
echo " ctags"
echo " vim (macos version lags behind)"
fi
;;
esac