diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-05-19 13:46:28 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-05-19 13:46:28 +0300 |
commit | 3c5b52750e9eb3ac1bf6ad86959548f381d52c83 (patch) | |
tree | 9fd3b136712429adce52e78cd829e6935eb46886 /functions/utilities.zsh | |
parent | 15e7d740877f17732de0723f50761556d55caa1b (diff) |
append POWERLEVEL9K_SHORTEN_DELIMITER when shortening with truncate_to_unique; use * as default in this case
Diffstat (limited to 'functions/utilities.zsh')
-rwxr-xr-x | functions/utilities.zsh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/utilities.zsh b/functions/utilities.zsh index eefe47b7..88470885 100755 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -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, |