-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·36 lines (31 loc) · 1.13 KB
/
setup.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
#!/bin/bash
delete_and_link () {
if [[ ! -L $2 ]]; then
rm -r $2
ln -s $1 $2
echo "$1 has been symlinked to $2"
fi
}
sudo_link () {
if [[ ! -L $2 ]]; then
sudo ln -s $1 $2
echo "$1 has been sudo symlinked to $2"
fi
}
delete_and_link $PWD/.bashrc $HOME/.bashrc
delete_and_link $PWD/.bash_aliases $HOME/.bash_aliases
delete_and_link $PWD/.gitconfig $HOME/.gitconfig
delete_and_link $PWD/.gitignore $HOME/.gitignore
# delete_and_link $PWD/.noserc $HOME/.noserc
delete_and_link $PWD/.tmux.conf $HOME/.tmux.conf
delete_and_link $PWD/init.el $HOME/.emacs.d/init.el
delete_and_link $PWD/htoprc $HOME/.config/htop/htoprc
delete_and_link $PWD/.bash_completion $HOME/.bash_completion
# Linux
delete_and_link $PWD/.i3 $HOME/.i3
#delete_and_link $PWD/uzbl.conf $HOME/.config/uzbl/config
#sudo_link /usr/bin/uzbl-tabbed /usr/bin/www
sudo_link $PWD/.i3/grab.sh /usr/bin/grab
# Mac
#delete_and_link $PWD/sublime/User "$HOME/Library/Application Support/Sublime Text 3/Packages/User"
#delete_and_link $PWD/.profile.mac.sh $HOME/.profile