-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (26 loc) · 806 Bytes
/
install.sh
File metadata and controls
executable file
·29 lines (26 loc) · 806 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
#!/bin/bash
installFile(){
if [ -L ~/$1 -o -f ~/.olddotfiles/$1 -o -d ~/.olddotfiles/$1 ]; then
echo A link to $1 already exists. Something is wrong.
else
mv ~/$1 ~/.olddotfiles/$1
ln -s ~/.dotfiles/$1 ~/$1
fi
}
if [ -d ~/.olddotfiles ]
then
echo "There is an older version of backedup dot files. Please run the uninstall before you install again."
else
mkdir ~/.olddotfiles
installFile .vim
# storing files with . prefix messes with editor tooling
installFile config
installFile .bashrc
installFile .bashrc.darwin
installFile .bash_profile
installFile .bash_aliases
#installFile .vimrc
installFile .pythonrc
installFile .tmux.conf
installFile .atom
fi