summaryrefslogtreecommitdiff
path: root/home/var/system/config-updater
diff options
context:
space:
mode:
authorDavid Kaufmann <astra@ionic.at>2018-05-03 20:45:49 +0200
committerDavid Kaufmann <astra@ionic.at>2018-05-03 20:45:49 +0200
commit05a2add00618def43caff7349e81d8f1336c55bf (patch)
tree9297abf68f83d9e6df291c43f0023a6ddd8a41e6 /home/var/system/config-updater
parenta8bc844250f0ee4f151e2dd8f559bee776f4d901 (diff)
downloadconfig-05a2add00618def43caff7349e81d8f1336c55bf.tar.gz
restore previous zshrc
Diffstat (limited to 'home/var/system/config-updater')
-rw-r--r--home/var/system/config-updater/post-update7
1 files changed, 7 insertions, 0 deletions
diff --git a/home/var/system/config-updater/post-update b/home/var/system/config-updater/post-update
index 42ae53d..d570079 100644
--- a/home/var/system/config-updater/post-update
+++ b/home/var/system/config-updater/post-update
@@ -6,4 +6,11 @@ if ! [ -d $HOME/.oh-my-zsh ]; then
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