diff options
| author | David Kaufmann <astra@ionic.at> | 2018-05-03 20:45:49 +0200 |
|---|---|---|
| committer | David Kaufmann <astra@ionic.at> | 2018-05-03 20:45:49 +0200 |
| commit | 05a2add00618def43caff7349e81d8f1336c55bf (patch) | |
| tree | 9297abf68f83d9e6df291c43f0023a6ddd8a41e6 /home | |
| parent | a8bc844250f0ee4f151e2dd8f559bee776f4d901 (diff) | |
| download | config-05a2add00618def43caff7349e81d8f1336c55bf.tar.gz | |
restore previous zshrc
Diffstat (limited to 'home')
| -rw-r--r-- | home/var/system/config-updater/post-update | 7 |
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 |
