-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_the_files.sh
executable file
·37 lines (31 loc) · 1.05 KB
/
dot_the_files.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
#!/bin/bash
DIR=${PWD}
# TODO: make this not suck, i.e. iterate over files in directory except for
# specific files to be ignored.
# Delete mode: delete currently existing dotfiles so we can symlink new ones.
if [[ "$1" == "-d" ]] || [[ "$1" == "-D" ]] || [[ "$1" == "--delete" ]]; then
echo "Deleting your current dotfiles..."
rm ~/.ApathyBeep.aif
rm ~/.DunDunDun.aiff
rm ~/.bash_aliases
rm ~/.bash_profile
rm ~/.git-completion.bash
rm ~/.gitconfig
rm ~/.punlist
rm ~/.safety_pig
rm ~/.vimrc
rm ~/usr/local/bin/git-diff-blame
fi
echo "Symlinking your shiny new dotfiles..."
ln -s $DIR/ApathyBeep.aif ~/.ApathyBeep.aif
ln -s $DIR/DunDunDun.aiff ~/.DunDunDun.aiff
ln -s $DIR/bash_aliases ~/.bash_aliases
ln -s $DIR/bash_profile ~/.bash_profile
ln -s $DIR/git-completion.bash ~/.git-completion.bash
ln -s $DIR/gitconfig ~/.gitconfig
ln -s $DIR/punlist ~/.punlist
ln -s $DIR/safety_pig ~/.safety_pig
ln -s $DIR/vimrc ~/.vimrc
ln -s $DIR/git-diff-blame/git-diff-blame /usr/local/bin/git-diff-blame
source ~/.bash_profile
echo "The files have been dotted!"