Skip to content

Commit

Permalink
Merge pull request #23 from fltt/zsh_prompt_expansion
Browse files Browse the repository at this point in the history
Enable parameters expansion in the prompt
  • Loading branch information
anttikantee committed Mar 13, 2017
2 parents 2c6383b + ab3ac07 commit d985782
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rumpctrl.sh.in
Expand Up @@ -6,6 +6,10 @@ rrCANDO=true
#[ "${SHELL}" != "${SHELL%bash}" ] \
# || { echo "environment requires bash"; rrCANDO=false; }

# enable parameters expansion in the prompt
[ "${SHELL}" = "${SHELL%/zsh}" ] \
|| set -o PROMPT_SUBST

# sed replacement is not run with /g ...
[ "XXXPATHXXX" = "XXXPATHXXX" ] && { echo "not preprocessed"; rrCANDO=false; }

Expand Down

0 comments on commit d985782

Please sign in to comment.