Inspired by original cdd. tmux 1.2 or higher required. License: http://m4i.mit-license.org/2012