tmuxのデフォルトのウインドウ名を変える!

今デフォルトのウインドウ名てこんな風になってるんですよ。
reattach-to-user-namespace

幅とりすぎぃ!

tmux起動時に最初に実行されるコマンドがウインドウ名になるらしい。
tmux.confに以下のように書いてるから最初に実行されるのがそのコマンドなんだな。
set-option -g default-command "reattach-to-user-namespace -l zsh"

これを次のように変える!
set-option -g default-command "main > /dev/null 2>&1; reattach-to-user-namespace -l zsh"

適当に自作コマンドを作ってその出力は闇に葬ってすぐreattach実行か。

この場合は初期名はmainになります。

なるほどね〜