X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=d10736edaacf5c6be9490e8ca3a364e0a8332946;hb=211f5faa3895e4cc6fc2ea7d2ee739ae99468f5f;hp=4f5d10029e595ba1af957c5eecdf7d070440323b;hpb=7b1ae14f7cb522ffc143465dd02afd2bfdad1d62;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index 4f5d100..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 @@ -739,7 +739,7 @@ done &) # Run reminder and redisplay it every four hours (if it's available). PERIOD=14400 periodic() { - which rem > /dev/null && [ -f ~/.reminders ] && rem -h + (( $+commands[rem] )) && [ -f ~/.reminders ] && rem -h }