If you’re just like me, and have lots of Terminal tabs open, you probably end up typing ‘pwd’ all the time.
Luckily, there is an easy solution:
- Create a file named ‘.profile’, in your user’s home.
- Type the following string in there!:
[cc lang=”bash”]export PROMPT_COMMAND=’echo -ne “\033]0;[${PWD/$HOME/~}]\007″‘[/cc]
That’s it!. You’re gonna have, from now on, the current working directory right there in the windows tab!.