Tmux integration doesn't trigger preset command
- iTerm2 version: 3.2.7
- OS version: 10.14.3
- com.googlecode.iterm2.plist
- debuglog.txt
Detailed steps to reproduce the problem:
- Preferences > Profiles > tmux profile > Command, added a path of a shell script file (as same as my other profiles)
- Run
tmux -CC
- New session popup, but doesn't run the shell script.
What happened: Here's the shell script I used for all profiles to change the shell by using preset command
#!/bin/bash
homebrew_zsh="/usr/local/bin/zsh"
zsh="/bin/zsh"
bash="/bin/bash"
if [ -f "$homebrew_zsh" ]
then
$homebrew_zsh --login
elif [ -f "$zsh"]
then
$zsh --login
else
$bash --login
fi
But only the tmux profile doesn't run this script.
What should have happened: It should run the script and change the shell