mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
Update uninstall.sh
- Need dot `.` for POSIX compliant instead of `source` - Use modern syntax for command substitution - Fix missing double quotes
This commit is contained in:
@@ -18,14 +18,14 @@ then
|
|||||||
|
|
||||||
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
||||||
then
|
then
|
||||||
ZSHRC_SAVE=".zshrc.omz-uninstalled-`date +%Y%m%d%H%M%S`";
|
ZSHRC_SAVE=".zshrc.omz-uninstalled-$(date +%Y%m%d%H%M%S)";
|
||||||
echo "Found ~/.zshrc -- Renaming to ~/${ZSHRC_SAVE}";
|
echo "Found ~/.zshrc -- Renaming to ~/${ZSHRC_SAVE}";
|
||||||
mv ~/.zshrc ~/${ZSHRC_SAVE};
|
mv ~/.zshrc ~/"${ZSHRC_SAVE}";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc;
|
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc;
|
||||||
|
|
||||||
source ~/.zshrc;
|
. ~/.zshrc;
|
||||||
else
|
else
|
||||||
if hash chsh >/dev/null 2>&1
|
if hash chsh >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user