summaryrefslogtreecommitdiff
path: root/assets/post-install.sh
blob: 69f007caa2f6128e3b3d815f5ffea01099d7c40d (plain)
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
#!/bin/sh

logfile="$HOME/post-install.log"
touch $logfile

echo "fixing perms on gpg directory"
{
	chown -R $(whoami) ~/.gnupg/
	find ~/.gnupg -type f -exec chmod 600 {} \;
	find ~/.gnupg -type d -exec chmod 700 {} \;
} >> $logfile 2>&1

echo "fixing remote repositories"
{
	cd ~/.dotfiles && \
		git remote remove origin && \
		git remote add origin git@cjennings.net:dotfiles.git

	cd ~/.emacs.d && \
		git remote remove origin && \
		git remote add origin git@cjennings.net:dotemacs.git
}

echo "cloning git repos"
{
	git clone cjennings@cjennings.net:git/org.git ~/sync/org
	git clone --depth 1 cjennings@cjennings.net:git/wallpaper.git ~/pictures/wallpaper
	git clone cjennings@cjennings.net:git/documents.git ~/projects/documents
	git clone cjennings@cjennings.net:git/kit.git ~/projects/kit
	git clone cjennings@cjennings.net:git/clipper.git ~/projects/clipper
	git clone cjennings@cjennings.net:git/finances.git ~/projects/finances

	git clone git@cjennings.net:dwm.git ~/code/dwm
	git clone git@cjennings.net:dmenu.git ~/code/dmenu
	git clone git@cjennings.net:st.git ~/code/st
	git clone git@cjennings.net:pinentry-dmenu.git ~/code/pinentry-dmenu

	git clone cjennings@cjennings.net:git/bsdsetup.git ~/code/bsdsetup
	git clone git@cjennings.net:archsetup.git ~/code/archsetup
	git clone cjennings@cjennings.net:git/zfsarch.git ~/code/zfsarch

	git clone cjennings@cjennings.net:git/exercism.git ~/code/exercism
	git clone cjennings@cjennings.net:git/lcthw.git ~/code/lcthw
	git clone cjennings@cjennings.net:git/slock.git ~/code/slock
	git clone cjennings@cjennings.net:git/elisp.git ~/code/elisp
	git clone cjennings@cjennings.net:git/clisp.git ~/code/clisp
	git clone cjennings@cjennings.net:git/100dayspython.git ~/code/100dayspython

	git clone cjennings@cjennings.net:git/nasbuild.git ~/projects/nasbuild
	git clone cjennings@cjennings.net:git/nextjob.git ~/projects/nextjob
	git clone cjennings@cjennings.net:git/elibrary.git ~/projects/elibrary
	git clone cjennings@cjennings.net:git/cesar-laptop.git ~/projects/cesar-laptop
} >> $logfile 2>&1