riywo / ndenv

node.js version manager based on rbenv
304 stars 31 forks source link

Change the way to get the name of the current shell #9

Closed terut closed 8 years ago

terut commented 8 years ago

The current way to get the name of the using shell doesn't work in some situations.

My default shell is bash, but I use zsh on tmux and then ndenv-init loads completions/ndenv.bash in zsh on tmux.

Now, rbenv use the different way to get the shell's name. https://github.com/sstephenson/rbenv/blob/master/libexec/rbenv-init#L23

riywo commented 8 years ago

Hi @terut ,

Thanks!

terut commented 8 years ago

You, too. :smile: