zsh install problems?
shelbyKiraM opened this issue · 3 comments
I'm in zsh:
21:49:16 user@Daedalus.marvell.cat betty master echo $0
-zsh
21:49:51 user@Daedalus.marvell.cat betty master
but betty gives me this when trying to install:
21:44:57 user@Daedalus.marvell.cat 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 user@Daedalus.marvell.cat 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.
The command that specifically tells you what shell you're using is ls -l $(which $(echo $0|sed s/-//))
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
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"