summaryrefslogtreecommitdiff
path: root/home/var/system/config-updater/post-update
blob: d5700796a1a87d07942afa669a645c1814e27c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
rm -f this_file_will_be_deleted
rm -f bin/config-update.sh
if ! [ -d $HOME/.oh-my-zsh ]; then
	if which curl ; then
		sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
	elif which wget ; then
		sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
	fi
	if [ -f .zshrc ] ; then
		if [ -f .zshrc.pre-oh-my-zsh ] ; then
			cat .zshrc.pre-oh-my-zsh > .zshrc
			rm .zshrc
		fi
	fi
fi
rm -f .zshrc.pre-oh-my-zsh