X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fprompt.bashrc;h=8114b292a9918e9a828bc1bce791894719a0ff27;hb=fcd45e190b92e5f5f25df29df408b31038c94816;hp=e67a8fd15d2e5f2d3d7b27832ae9496981590d2a;hpb=8f2c4b17bd7ca83ecf043c5c5e2d05edc91a1cd6;p=profile.git diff --git a/.profile.d/prompt.bashrc b/.profile.d/prompt.bashrc index e67a8fd..8114b29 100644 --- a/.profile.d/prompt.bashrc +++ b/.profile.d/prompt.bashrc @@ -10,4 +10,4 @@ if [ -n "$OLDSOLARIS" -a ! "${TERM##screen}" = "$TERM" ]; then unset _prompt_command_escape fi -PROMPT_COMMAND='for snippet in ${PROFILE_HOME:-~}/.prompt.d/*.prompt; do . $snippet; done; unset snippet' +PROMPT_COMMAND='shopt -q nullglob; ng=$?; shopt -s nullglob; for snippet in ${PROFILE_HOME:-~}/.prompt.d/*.prompt; do . $snippet; done; unset snippet; [ $ng = 0 ] || shopt -u nullglob; unset ng'