mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00: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:
parent
e44aa50301
commit
45cd2df31f
1 changed files with 3 additions and 3 deletions
|
@ -18,14 +18,14 @@ then
|
|||
|
||||
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
||||
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}";
|
||||
mv ~/.zshrc ~/${ZSHRC_SAVE};
|
||||
mv ~/.zshrc ~/"${ZSHRC_SAVE}";
|
||||
fi
|
||||
|
||||
mv ~/.zshrc.pre-oh-my-zsh ~/.zshrc;
|
||||
|
||||
source ~/.zshrc;
|
||||
. ~/.zshrc;
|
||||
else
|
||||
if hash chsh >/dev/null 2>&1
|
||||
then
|
||||
|
|
Loading…
Reference in a new issue