Terminal Support

As of macOS 10.13, Timing should be able to automatically detect the current Terminal working directory, with no changes needed from your side. In case this is not working, you may try the following instructions.

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, we recommend changing the title of your Terminal windows to something like user@mac:/your/working/directory. Alternatively, having just /your/working/directory somewhere in the title might work, but we can't guarantee that.

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"'
    export PROMPT_COMMAND="${PROMPT_TITLE}; ${PROMPT_COMMAND}"

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. An example for fish would be this:

function fish_title 
    pwd
end

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 2, but we can not guarantee that. A user has reported the following configuration to work optimally with iTerm 2:

if [ $ITERM_SESSION_ID ]; then
  DISABLE_AUTO_TITLE="true"
  echo -ne "\033]0; ${USER} @ ${HOSTNAME%% .* } : ${PWD/# $HOME/ ~} \007"
fi

precmd() {
  echo -ne "\033]0; ${USER} @ ${HOSTNAME%% .* } : ${PWD/# $HOME/ ~} \007"
}

Take our free 5-day course to get started with Timing.