From: Simon Ruderich Date: Thu, 1 Mar 2012 21:11:31 +0000 (+0100) Subject: zsh/rc: Fix "fg" in window_preexec() for programs starting with fg. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=211f5faa3895e4cc6fc2ea7d2ee739ae99468f5f;p=config%2Fdotfiles.git zsh/rc: Fix "fg" in window_preexec() for programs starting with fg. --- diff --git a/zsh/rc b/zsh/rc index 0cd6756..d10736e 100644 --- a/zsh/rc +++ b/zsh/rc @@ -370,7 +370,7 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then # Replace fg with the resumed job name. if [[ $program_name == fg ]]; then program_name=${jobtexts[%+]} - elif [[ $program_name == fg* ]]; then + elif [[ $program_name == fg\ * ]]; then program_name=${jobtexts[${program_name#fg }]} fi