mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
Don't source ~/.zshrc after uninstall.
We don't know which shell we're running under. And re-sourcing a different in a running session .zshrc doesn't get you to the right configuration.
This commit is contained in:
parent
d9cdc20ce6
commit
753ab332d2
1 changed files with 1 additions and 4 deletions
|
|
@ -23,11 +23,8 @@ if [ -e "$ZSHRC_ORIG" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv "$ZSHRC_ORIG" ~/.zshrc;
|
mv "$ZSHRC_ORIG" ~/.zshrc;
|
||||||
|
|
||||||
source ~/.zshrc;
|
|
||||||
else
|
else
|
||||||
if hash chsh >/dev/null 2>&1
|
if hash chsh >/dev/null 2>&1; then
|
||||||
then
|
|
||||||
echo "Switching back to bash"
|
echo "Switching back to bash"
|
||||||
chsh -s /bin/bash
|
chsh -s /bin/bash
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue