-
Notifications
You must be signed in to change notification settings - Fork 0
/
_deployDo.sh
executable file
·53 lines (44 loc) · 1.19 KB
/
_deployDo.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
[ -z "$1" ] && dest="/home/sweater/github/dotfiles" || dest=$1
home='/home/sweater'
for c in \
'.bashrc' \
'.tmux.conf' \
'.nixpkgs/config.nix' \
'.newsbeuter/urls' \
'.vimrc' \
'.tmux.conf' \
'.xsession' \
'.bash_profile' \
'.emacs' \
'.ghcPkgUtils.source' \
'.arbtt/categorize.cfg' \
'.gitconfig' \
'.Xresources' \
'.muttrc'
do
cc=${c/\./_}
target=${cc//\//->}
if [ -f $home/$c ]; then
cp -uv $home/$c{,.backup}
fi
mkdir -p "$(dirname ${home}/${c})"
cp -uv "${dest}/${target}" "${home}/${c}"
done
for globc in \
'/root/cron.conf'
do
# Restore global configs
cc=${globc/\./_}
target=${cc//\//->}
cp -u "${dest}/${target}" "${globc}"
done
mkdir -p ${home}/.emacs.d/plugins/
git clone [email protected]:manpages/evil-org-mode.git ${home}/.emacs.d/plugins/evil-org-mode
cp -vru _emacs.d/wilderness ${home}/.emacs.d/
mkdir -p ${home}/.js
cp -vru _js/* ${home}/.js/
mkdir -p ${home}/.mutt/cache/bodies
touch ${home}/.mutt/cache/headers
cp -vru _mutt/includes ${home}/.mutt/
mkdir -p ${home}/.vim/bundle
git clone https://github.com/ctrlpvim/ctrlp.vim.git ${home}/.vim/bundle/ctrlp.vim