mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01: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
|
||||
|
||||
mv "$ZSHRC_ORIG" ~/.zshrc;
|
||||
|
||||
source ~/.zshrc;
|
||||
else
|
||||
if hash chsh >/dev/null 2>&1
|
||||
then
|
||||
if hash chsh >/dev/null 2>&1; then
|
||||
echo "Switching back to bash"
|
||||
chsh -s /bin/bash
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue