Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Tab not opening in the Same Working Directory #4555

Closed
emmanuel-isaac opened this issue Oct 28, 2015 · 9 comments
Closed

New Tab not opening in the Same Working Directory #4555

emmanuel-isaac opened this issue Oct 28, 2015 · 9 comments

Comments

@emmanuel-isaac
Copy link
Contributor

I noticed that upon adding extra lines of code to the ~/.zshrc file, like aliases, new tabs stop opening in the same working directory.

@ncanceill
Copy link
Contributor

Hi, and thanks for reporting.

In the software world, when you report a problem, it is common to include a simple procedure to reproduce said problem. Would you kindly do that?

You can see an example of how to do so (and maybe even a solution) in #2887.

@mcornella
Copy link
Member

@andela-eisaac is this still happening? If so, can you post your zshrc file?

@emmanuel-isaac
Copy link
Contributor Author

Yes it is.

# Path to your oh-my-zsh installation.
export ZSH=/Users/username/.oh-my-zsh
ZSH_THEME="muse"
plugins=(git)

# User configuration
PATH="/Users/username/.rbenv/shims:/usr/local/bin:/Users/username/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

export PATH="$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"

source $ZSH/oh-my-zsh.sh
alias 2u="cd ~/Documents/CODEine/"

source /usr/local/bin/virtualenvwrapper.sh
export LANG=ru_RU.UTF-8


export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

@mcornella
Copy link
Member

You seem to be using OSX, can you verify that you have the latest version of oh-my-zsh?

@mcornella
Copy link
Member

If you have the latest version, you can try commenting one by one the lines below source $ZSH/oh-my-zsh.sh and restarting the terminal to see when it is that it works again.

@emmanuel-isaac
Copy link
Contributor Author

@mcornella I have the latest version of oh-my-zsh installed. I commented out all lines below source $ZSH/oh-my-zsh.sh but new tabs still do not open in my current working directory.

Here's what my ~/.zshrc file looks like now:

# Path to your oh-my-zsh installation.
export ZSH=/Users/username/.oh-my-zsh
ZSH_THEME="muse"
plugins=(git)

# User configuration
PATH="/Users/i_emmanuel/.rbenv/shims:/usr/local/bin:/Users/username/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

export PATH="$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Users/username/.rvm/bin"

source $ZSH/oh-my-zsh.sh
#alias 2u="cd ~/Documents/CODEine/"

#source /usr/local/bin/virtualenvwrapper.sh
#export LANG=ru_RU.UTF-8

@mcornella
Copy link
Member

That's weird a little weird, since you said:

I noticed that upon adding extra lines of code to the ~/.zshrc file, like aliases, new tabs stop opening in the same working directory.

Anyway, try to have the smallest possible zshrc file:

export ZSH=/Users/username/.oh-my-zsh
ZSH_THEME="muse"
plugins=(git)
source $ZSH/oh-my-zsh.sh

and see if it works.

If not, try to find a configuration in which tab opening works correctly: using bash, or using zsh -f which bypasses reading the .zshrc file altogether.

@mcornella
Copy link
Member

Any updates?

@emmanuel-isaac
Copy link
Contributor Author

I'll close this PR, format my computer and if I'm still having the same problem, I'll open another PR. Thanks @mcornella 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants