diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-06 12:30:11 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-06 12:30:11 +0300 |
commit | ef6f90f598dcce54b9a96f2aae317a20cab541e9 (patch) | |
tree | f30e0f3e45b90e99b1e65ea93586eb04d4baa8fa /internal/configure.zsh | |
parent | 072f7be8ff2e3210484956877f066ccd7b157c8c (diff) |
wizard: fix handling for $ZDOTDIR and $HOME with special symbols ("%", "$", etc.)
Diffstat (limited to 'internal/configure.zsh')
-rw-r--r-- | internal/configure.zsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/configure.zsh b/internal/configure.zsh index f8483d75..ae24be34 100644 --- a/internal/configure.zsh +++ b/internal/configure.zsh @@ -1,13 +1,13 @@ typeset -gr __p9k_wizard_columns=55 typeset -gr __p9k_wizard_lines=21 -typeset -gr __p9k_zd=${${ZDOTDIR:-$HOME}:A} -typeset -gr __p9k_zd_u=${${${(q-)__p9k_zd}/#(#b)$HOME(|\/*)/'~'$match[1]}//\%/%%} +typeset -gr __p9k_zd=${ZDOTDIR:-$HOME} +typeset -gr __p9k_zd_u=${${${(q)__p9k_zd}/#(#b)${(q)HOME}(|\/*)/'~'$match[1]}//\%/%%} typeset -gr __p9k_cfg_basename=.p10k.zsh typeset -gr __p9k_cfg_path=$__p9k_zd/$__p9k_cfg_basename typeset -gr __p9k_cfg_path_u=$__p9k_zd_u/$__p9k_cfg_basename typeset -gr __p9k_zshrc=$__p9k_zd/.zshrc typeset -gr __p9k_zshrc_u=$__p9k_zd_u/.zshrc -typeset -gr __p9k_root_dir_u=${${${(q-)__p9k_root_dir}/#(#b)$HOME(|\/*)/'~'$match[1]}//\%/%%} +typeset -gr __p9k_root_dir_u=${${${(q)__p9k_root_dir}/#(#b)${(q)HOME}(|\/*)/'~'$match[1]}//\%/%%} function _p9k_can_configure() { emulate -L zsh |