Right now I have my iTerm session configured to use zsh (/usr/local/bin/zsh
), but I'm trying to configure tmux to use zsh as well, instead of /bin/bash/
, which it's currently defaulting to. So far nothing I've read up on has gotten me where I need. Any ideas or things I may have missed?
Below are some details about my current setup. Thanks!
Check state:
1) Open iTerm
echo $SHELL
/bin/bash
ps -p $$
PID TTY TIME CMD 19626 ttys000 0:00.52 /usr/local/bin/zsh
2) Run tmux
tmux
echo $SHELL
/usr/local/bin/zsh
Configuration:
iTerm Profiles > General > Command:
/usr/local/bin/zsh
In .tmux.conf:
set-option -g default-shell /usr/local/bin/zsh
ps -p $$
in tmux prints:20201 ttys001 0:00.02 -bash
. Even though the $SHELL variable seems to be set, tmux doesn't actually seem to be using zsh. Also, on this machine powerline's only been configured for bash. Every time I start tmux, powerline's definitely visible.