Terminal Support

Timing can also track the current working directory of your bash sessions (bash is the software that runs inside Terminal to let you enter commands). In order to do so, you have to change the title of your Terminal windows to something like user@mac:/your/working/directory.

If you are using the bash shell and Terminal.app, please use the steps below:

  1. Open the file named .profile for editing, e.g. by entering the following command into Terminal:
    touch ~/.profile; open -a TextEdit ~/.profile
  2. Copy the following lines and paste them at the end of the file opened in the first step (which might be empty):
    PROMPT_TITLE='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'

If you are using a different shell, please use equivalent commands for your shell to ensure that your Terminal window title contains a string of the form user@hostname:/current/working/directory. Recognition might also work if your Terminal title contains just the current working directory somewhere, but we can't guarantee that. In addition, the same configuration should also work for iTerm, but we can not guarantee that.