mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
append POWERLEVEL9K_SHORTEN_DELIMITER when shortening with truncate_to_unique; use * as default in this case
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user