Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
See the tmux FAQ, TERM must be screen or a derivative thereof... – jasonwryan Nov 5 '12 at 1:49
up vote 4 down vote accepted

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.

share|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 posting your answer, you agree to the privacy policy and terms of service.

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