When I create new window in tmux it displays name of current directory and date:

Directory: /home/killy
nie, 4 lis 2012, 14:51:18 CET
[killy@xerxes : ~]

How can I prevent that?

EDIT: I realized that this problem appears when I set TERM variable to xterm.

  • 2
    See the tmux FAQ, TERM must be screen or a derivative thereof... – jasonwryan Nov 5 '12 at 1:49

I would expect these messages to be coming from your shell initialisation - either it is produced always by your shell init script or only in some mode, e.g. for interactive shells. As these lines are the default on many distributions, I would suggest to look into /etc/profile (look for the "Directory:" string). Using your own shell init scripts (for bash these would be ~/.bashrc and ~/.bash_profile), where you modify it to your liking, is probably the best way to go.

| improve this answer | |
  • You are right. On my openSUSE the code responsible for this is located in /etc/profile. Thanks! – Jan Stolarek Nov 5 '12 at 8:54
  • @JanStolarek By the way, putting all of your personal initialization stuff into ~/.bashrc has another advantage: it can be more easily shared across several machines since you don't need a write access to /etc to modify it. You can even track it with a version control system. – peterph Nov 5 '12 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.