append POWERLEVEL9K_SHORTEN_DELIMITER when shortening with truncate_to_unique; use * as default in this case

This commit is contained in:
romkatv 2019-05-19 12:46:28 +02:00
commit 3c5b52750e
2 changed files with 7 additions and 4 deletions

View file

@ -32,8 +32,10 @@ function set_default() {
}
function _p9k_g_expand() {
(( $+parameters[$1] )) || return
local -a ts=("${=$(typeset -p $1)}")
shift ts
local x
for x in "${ts[@]}"; do
[[ $x == -* ]] || break
# Don't change readonly variables. Ideally, we shouldn't modify any variables at all,