Shell integration not installing in bash shell when ksh is default shell
- iTerm2 version: Build 3.1.5
- OS version: 10.13.2
My Active Directory account lists my default shell as ksh
so I run the command /bin/bash
instead of a login shell. (It's a problem with our AD setup and I can't fix it.)
Detailed steps to reproduce the problem:
- Select "Install Shell Integration"
- Click OK in the "warning" dialog
What happened: curl ran and then I got the message "Your shell, ksh, is not supported yet. Only tcsh, zsh, bash, and fish are supported. Sorry!"
What should have happened:
Shell integration for bash
should have installed in the running bash shell.
I checked your script and noticed that you are reading $SHELL so I set that in my bash profile - SHELL='/bin/bash'
and then it worked.
Can I suggest that you read $0
instead. That's going to be the path to the running shell, not whatever the account has set as default.