Search code examples
macostmux

mac osx clean command not working under tmux


As the title says the error is "terminals database is inaccessible":

 » clear                                                                                                                                                                                                                       
terminals database is inaccessible

macOS Monterey 12.4

Issue only occurs under tmux + zsh and googling hasn't helped.


Solution

  • You can try to configure the default terminal to xterm by adding

    set -g default-terminal xterm-256color
    

    to your ~/.tmux.conf