Tmux prompt not following normal bash prompt PS1 \W
This one works for me: In tmux/terminal:
tmux set-option -g default-command bash
Or simply put into ~/.tmux.conf
:
set-option -g default-command bash
Add the following in your ~/.tmux.conf
set -g default-terminal "tmux-256color"
From the beloved ArchWiki tmux