Running TMUX and Oh-My-ZSH together

  |   Source

Recently switched over to running ZSH on a MacBook Pro and also installed Oh-My-ZSH.

Added the tmux plugin to .zshrc and it worked.

Tried to use the same .tmux.conf file from "Bash land" and the keys worked correctly but the shell changed back to Bash.

Had to make one change to the tmux.conf file:

OLD:

``set-option -g default-command "reattach-to-user-namespace -l bash"

NEW:

``set-option -g default-command "reattach-to-user-namespace -l $SHELL -l"

This allows the OMZ script to run properly and now displays the correct prompt.

Comments powered by Disqus