Configuring TMUX's status bar

Solution 1:

Try this:

set -g status-right '#[fg=white]#(hostname)@#(host `hostname` | cut -d " " -f 4)'

The documentation for tmux says that commands inside #() are sh commands. I couldn't get $() to work, but the backticks do.