-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinker.sh
executable file
·64 lines (60 loc) · 2.48 KB
/
linker.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
echo "Removing old files... "
dpath=$(pwd)
rm -rf ~/.barinfo
rm -rf ~/.barinfo-valentine
rm -rf ~/bin
rm -rf ~/.config/dunst
rm -rf ~/.config/fontconfig
rm -rf ~/.config/gtk-3.0
rm -rf ~/.config/termite/config
rm -rf ~/.emacs
rm -rf ~/.emacs.d
rm -rf ~/.fonts
rm -rf ~/.gitconfig
rm -rf ~/.ghc/ghci.conf
rm -rf ~/.i3/config
rm -rf ~/.icons
rm -rf ~/.ncmpcpp
rm -rf ~/.ocamlinit
rm -rf ~/.spacemacs
rm -rf ~/.themes
rm -rf ~/.vim
rm -rf ~/.vimrc
rm -rf ~/.xinitrc
rm -rf ~/.xmobar
rm -rf ~/.xmonad
rm -rf ~/.Xresources
rm -rf ~/.zshrc
rm -rf ~/.zshlex
echo "Done."
mkdir ~/.i3 ~/.ghc ~/.config ~/.config/termite
echo "Linking..."
ln -sf $dpath/.barinfo ~/.barinfo &&
ln -sf $dpath/.barinfo-valentine ~/.barinfo-valentine &&
ln -sf $dpath/bin ~/bin &&
ln -sf $dpath/.config/dunst ~/.config/dunst &&
ln -sf $dpath/.config/fontconfig ~/.config/fontconfig &&
ln -sf $dpath/.config/gtk-3.0 ~/.config/gtk-3.0 &&
ln -sf $dpath/.config/termite/config.$1 ~/.config/termite/config &&
ln -sf $dpath/.emacs ~/.emacs &&
ln -sf $dpath/.emacs.d ~/.emacs.d &&
ln -sf $dpath/.fonts ~/.fonts &&
ln -sf $dpath/.gitconfig ~/.gitconfig &&
ln -sf $dpath/.ghc/ghci.conf ~/.ghc/ghci.conf &&
ln -sf $dpath/.i3/config.$1 ~/.i3/config &&
ln -sf $dpath/.icons ~/.icons &&
ln -sf $dpath/.config/mpd ~/.config/mpd &&
ln -sf $dpath/.ncmpcpp ~/.ncmpcpp &&
ln -sf $dpath/.ocamlinit ~/.ocamlinit &&
ln -sf $dpath/.spacemacs ~/.spacemacs &&
ln -sf $dpath/.themes ~/.themes &&
ln -sf $dpath/.vim ~/.vim &&
ln -sf $dpath/.vimrc ~/.vimrc &&
ln -sf $dpath/.xinitrc ~/.xinitrc &&
ln -sf $dpath/.xmobar ~/.xmobar &&
ln -sf $dpath/.xmonad ~/.xmonad &&
ln -sf $dpath/.Xresources ~/.Xresources &&
ln -sf $dpath/.zshrc ~/.zshrc &&
ln -sf $dpath/.zshlex ~/.zshlex
echo "Done"