remove tmux-navigator; chop newline when copying the directory's name