ohmyzsh: Update not working (error with upgrade.sh)
I can’t update Oh My Zsh from inside the shell. This is my shell session showing what goes wrong:
Last login: Sun Aug 14 09:42:19 on ttys002
[Oh My Zsh] Would you like to check for updates?
Type Y to update oh-my-zsh: y
/bin/sh: /tools/upgrade.sh: No such file or directory
Here is my .zshrc (zsh_app_switcher is just a simple function):
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell"
plugins=(osx brew rvm gem bundler git rails3)
source $ZSH/oh-my-zsh.sh
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
source /Users/ashleymoran/.dotfiles/zsh_app_switcher
export EDITOR="mate -w"
export SVN_EDITOR="mate -w"
alias nano="nano -w"
export DARCS_EMAIL=ash.moran@patchspace.co.uk
if [[ -s /Users/ashleymoran/.rvm/scripts/rvm ]] ; then source /Users/ashleymoran/.rvm/scripts/rvm ; fi
About this issue
- Original URL
- State: closed
- Created 13 years ago
- Comments: 24 (4 by maintainers)
Commits related to this issue
- Fix auto upgrade failure from non-exported ZSH env var Fixes #549. Specify ZSH=$ZSH explicitly when invoking the auto update scripts. — committed to SethMilliken/oh-my-zsh by deleted user 13 years ago
- Fix auto upgrade failure from non-exported ZSH env var Fixes #549. Specify ZSH=$ZSH explicitly when invoking the auto update scripts. — committed to jojahner/oh-my-zsh by deleted user 13 years ago
- Fix auto upgrade failure from non-exported ZSH env var Fixes #549. Specify ZSH=$ZSH explicitly when invoking the auto update scripts. — committed to neaf/oh-my-zsh by deleted user 13 years ago
- Fix auto upgrade failure from non-exported ZSH env var Fixes #549. Specify ZSH=$ZSH explicitly when invoking the auto update scripts. — committed to doug/oh-my-zsh by deleted user 13 years ago
- Fix auto upgrade failure from non-exported ZSH env var Fixes #549. Specify ZSH=$ZSH explicitly when invoking the auto update scripts. — committed to jtimberman/oh-my-zsh by deleted user 13 years ago
- Fix auto upgrade failure from non-exported ZSH env var Fixes #549. Specify ZSH=$ZSH explicitly when invoking the auto update scripts. — committed to trabianmatt/oh-my-zsh by deleted user 13 years ago
I also had troubles upgrading.
Manually executing
git pull origin masterworked.Iernies trick worked. Seems like $ZSH isn’t working inside upgrade.sh even though it is working otherwise.
If you upgraded you MAC OS & you have XCode already installed, you should open XCode & accept agreements & install new components, then, go back to terminal … the issue will be resolved.