-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (31 loc) · 802 Bytes
/
setup.sh
File metadata and controls
executable file
·37 lines (31 loc) · 802 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
30
31
32
33
34
35
36
37
#! /bin/bash
#
# setup.sh
#
# Replace dotfiles with rcs versions to ease system migration.
#
pushd ~
# backup existing dotfiles
mv .emacs .emacs.$$.bak
mv emacs emacs.$$.bak
mv .bashrc .bashrc.$$.bak
mv .profile .profile.$$.bak
mv .pythonrc .pythonrc.$$.bak
mv .gitconfig .gitconfig.$$.bak
mv .gitignore .gitignore.$$.bak
mv .screenrc .screenrc.$$.bak
mv .Xresources .Xresources.$$.bak
mv synergy.conf synergy.conf.$$.bak
# symbolic link to new source-controlled dotfiles
ln -s dot/emacs emacs
ln -s dot/.emacs .emacs
ln -s dot/.bashrc .bashrc
ln -s dot/.profile .profile
ln -s dot/.pythonrc .pythonrc
ln -s dot/.gitconfig .gitconfig
ln -s dot/.gitignore .gitignore
ln -s dot/.screenrc .screenrc
ln -s dot/.Xresouces .Xresources
ln -s dot/synergy.conf synergy.conf
popd
xrdb -merge ~/.Xresources