Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Usually the title of my terminal window displays some useful informations (e.g. the directory I'm currently in, or if I am installing some packages and their dependencies with "emerge somepackage" then I see what I'm currently emerging, etc...).

Does anybody know how to display the exact same informations in Tmux' bottom green bar? I just want it to display the same stuff that I would otherwise see in the window title of my terminal emulator.

I tried to search for it but I'm probably not using the correct terms so I didn't find anything that is relevant to this.




http://man7.org/linux/man-pages/man1/tmux.1.html#NAMES_AND_T...

    case $TERM in
    xterm*)
        echo -e '\033]0;INSERT TITLE HERE\007';;
    screen*)
        echo -e '\033kINSERT TITLE HERE\033\\';;
    esac
Based on what I do, but not in front of a computer to test exactly what I typed above.


I moved my green bar to the top, but this might do what you need with some minor tweaking.

https://github.com/ohazi/dotfiles/blob/master/tmux.conf#L210...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: