Here is a screenshot of my terminal when I open tmux:
Note: Here, my shell displays my [email protected] but it does not display it in colors 🙁
To make tmux read your bash colors, edit your tmux configuration file:
Add the following line to the tmux config file:
set -g default-terminal "screen-256color"
Exit and save the file. Close and re-open tmux.
Now, when you open tmux you should be able to get your regular bash prompt colors. Here is a screenshot after re-opening tmux:
Hope this helps! Cheers!
10 thoughts on “Tmux not displaying bash prompt colors”
Ah. Thank you, it was really bothering me.
@Harry. Glad the colors work now 🙂
tks a lot, could get colors with screen but not with tmux or byobu+tmux
@stef, Glad it worked! 🙂
Just as it should be, short and to the point.
@Nutter, thanks for stopping by.Have a good day!
Just googled this problem and found your solution. Thank you so much!
@Daniel, Glad it worked! Cheers!