upgrade_oh_my_zsh not working

All of the sudden I encountered the following error while upgrading my zsh

Upgrading Oh My Zsh
From https://github.com/robbyrussell/oh-my-zsh
 * branch            master     -> FETCH_HEAD

It seems that there is already a rebase-apply directory, and
I wonder if you are in the middle of another rebase.  If that is the
case, please try
	git rebase (--continue | --abort | --skip)

and all you need to do is cd to your oh-my-zsh/tools and edit upgrade.sh from

if git pull --rebase --stat origin master


if git pull --stat origin master

LSOpenURLsWithRole() failed for the application /Applications/.app

I was trying to open the directory in atom from terminal but I was getting “LSOpenURLsWithRole() failed for the application /Applications/atom.app” and I found that this has nothing to do with OS X Yosemite but tmux. Here is what I did

  1. Change Directory(cd) to the tmux-powerline and do “git pull“. Just to update the powerline.
  2. If you don’t have “reattach-touser-namespace” on your system then run”brew install reattach-touser-namespace
    1. open tmux.config
    2. Append the following to the top ” setoption -g default-command “reattach-to-user-namespace -l zsh” ” assuming you already have zsh.
  3. Run “brew info reattach-to-user-namespace” it will give you the following
    reattach-to-user-namespace: stable 2.3, HEADhttps://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/usr/local/Cellar/reattach-to-user-namespace/2.3 (6 files, 48K) *Built from sourceFrom: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/reattach-to-user-namespace.rb
  4. Run “reattach-to-user-namespace atom -v

I hope this will work for you.