-
Notifications
You must be signed in to change notification settings - Fork 0
/
set.sh
executable file
·39 lines (33 loc) · 845 Bytes
/
set.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
#!/usr/bin/env bash
# set links
# this is still bad
# make better later
# let's just not do anything if we are not on the Mac
# MACHTYPE=x86_64-apple-darwin15
if [[ $MACHTYPE != *apple* ]];then
exit 1
fi
if [[ ! -f ~/.ssh/config.orig ]];then
/bin/cp -p ~/.ssh/config ~/.ssh/config.orig
fi
if [[ ! -h ~/.ssh/config ]];then
/bin/ln -sf ~/dotfiles/ssh/config ~/.ssh/config
fi
if [[ ! -f ~/.bash_profile.orig ]];then
/bin/cp -p ~/.bash_profile ~/.bash_profile.orig
fi
if [[ ! -h ~/.bash_profile ]];then
/bin/ln -sf ~/dotfiles/bash_profile ~/.bash_profile
fi
if [[ ! -f ~/.vim.orig ]];then
/bin/cp -p ~/.vim ~/.vim.orig
fi
if [[ ! -h ~/.vim ]];then
/bin/ln -sf ~/dotfiles/vim ~/.vim
fi
if [[ ! -f ~/.vimrc.orig ]];then
/bin/cp -p ~/.vimrc ~/.vimrc.orig
fi
if [[ ! -h ~/.vimrc ]];then
/bin/ln -sf ~/dotfiles/vimrc ~/.vimrc
fi