This repository was archived by the owner on Apr 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
25 lines (23 loc) · 1.27 KB
/
bootstrap.sh
File metadata and controls
25 lines (23 loc) · 1.27 KB
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
#!/bin/sh
# Backup exists directories
[ -d ~/.linux-config ] && mv ~/.linux-config ~/.linux-config.old
[ -d ~/.config/awesome ] && mv ~/.config/awesome ~/.config/awesome.old
[ -d ~/.fonts ] && mv ~/.fonts ~/.fonts.old
# Backup exists files
[ -f ~/.Xresources ] && mv ~/.Xresources ~/.Xresources.old
[ -f ~/.gitconfig ] && mv ~/.gitconfig ~/.gitconfig.old
[ -f ~/.xinitrc ] && mv ~/.xinitrc ~/.xinitrc.old
[ -f ~/.xprofile ] && mv ~/.xprofile ~/.xprofile.old
[ -f ~/.profile ] && mv ~/.profile ~/.profile.old
[ -f ~/.gemrc ] && mv ~/.gemrc ~/.gemrc.old
[ -f ~/.zshrc ] && mv ~/.zshrc ~/.zshrc.old
git clone https://github.com/XsErG/linux-config ~/.linux-config && \
ln -s ~/.linux-config/awesome ~/.config/awesome && \
ln -s ~/.linux-config/fonts ~/.fonts && \
ln -s ~/.linux-config/gitconfig ~/.gitconfig && \
ln -s ~/.linux-config/xinitrc ~/.xinitrc && \
ln -s ~/.linux-config/xprofile ~/.xprofile && \
ln -s ~/.linux-config/Xresources ~/.Xresources && \
ln -s ~/.linux-config/profile ~/.profile && \
ln -s ~/.linux-config/gemrc ~/.gemrc && \
ln -s ~/.linux-config/zshrc ~/.zshrc