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

zsh install problems? #200

Open
shelbyKiraM opened this issue Mar 18, 2018 · 3 comments
Open

zsh install problems? #200

shelbyKiraM opened this issue Mar 18, 2018 · 3 comments

Comments

@shelbyKiraM
Copy link

I'm in zsh:

21:49:16 [email protected] betty master echo $0
-zsh
21:49:51 [email protected] betty master

but betty gives me this when trying to install:

21:44:57 [email protected] betty master ruby install.rb
We will install to ~/betty and put an alias in your .<shell>rc. Hit <enter> or 'y' if this is okay.
> y
Running `cp -rf . /Users/user/betty/`
Writing an alias called `betty` to /Users/user/.bash_profile
add auto-complete by typing
complete -C /Users/user/betty/autocomplete.rb betty

And I can't ask betty what shell I'm using?

21:49:12 [email protected] betty master betty what shell is this
lily: I don't understand. Hopefully someone will make a pull request so that one day I will understand.
@shelbyKiraM
Copy link
Author

The command that specifically tells you what shell you're using is ls -l $(which $(echo $0|sed s/-//))

@shelbyKiraM
Copy link
Author

Or better:

ls -l $(echo $SHELL)

Will show what shell and what it's linked to... Me:

lrwxr-xr-x 1 user staff 29 Jan 8 17:26 /usr/local/bin/zsh -> ../Cellar/zsh/5.4.2_3/bin/zsh

@shelbyKiraM
Copy link
Author

shelbyKiraM commented Mar 18, 2018

Ah. So:

Via: https://askubuntu.com/questions/590899/how-to-check-which-shell-am-i-using#850832

"$SHELL gives you the default shell. $0 gives you the current shell.

For example: I have bash as my default shell, which I use for my Terminal App. But for my iTerm2 app, I use the command as the window opens: /bin/ksh.

So my $0 gives me /bin/ksh on iTerm2. $SHELL gives me /bin/bash on iTerm2. $0 & $SHELL gives me /bin/bash on Terminal"

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

1 participant