Originally, I was trying to determine why some directories show up differently colored than others when using the
While playing around with this. I have now encountered the problem of not being able to clear the screen inside a tmux terminal
$ clear 'tmux-256color': unknown terminal type.
This problem only persists in tmux, not the actual terminal itself and only showed up after trying to fix the initial problem. Also the colors have changed when running vim inside tmux now.
Here are some outputs:
$ echo $TERM; tput colors; tput longname xterm-256color 256 xterm with 256 colors
echo $TERM; tput colors; tput longname tmux-256color tput: unknown terminal "tmux-256color" tput: unknown terminal "tmux-256color"
my .bashrc file has:
case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac
my .tmux.conf has:
set -g default-terminal "screen-256color"