Open shelbyKiraM opened 6 years ago
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"
I'm in zsh:
but betty gives me this when trying to install:
And I can't ask betty what shell I'm using?