Skip to content

Commit

Permalink
Remove subshell from prompt_tag()
Browse files Browse the repository at this point in the history
This also removes the last use of the spacing utility functions.
  • Loading branch information
Rycieos committed Nov 25, 2020
1 parent edc490f commit 9ba6e86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,11 @@ _lp_set_prompt() {
}

prompt_tag() {
export LP_PS1_PREFIX="$(_lp_sr "$1")"
if [[ -n "${1-}" ]]; then
export LP_PS1_PREFIX="$1 "
else
export LP_PS1_PREFIX=
fi
}

# Activate Liquid Prompt
Expand Down

0 comments on commit 9ba6e86

Please sign in to comment.