diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-07-28 13:19:51 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-07-28 13:19:51 +0300 |
commit | 0378a0a54c74db5ef1d26ade098e48ed8d5af16d (patch) | |
tree | 650c6407e1040d518232d86817bbad3ef7214bfa /internal/configure.zsh | |
parent | e28d0c37c9d25454bd9c9262df7a04b557e8a9f5 (diff) |
cleanup
Diffstat (limited to 'internal/configure.zsh')
-rw-r--r-- | internal/configure.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/configure.zsh b/internal/configure.zsh index 9da3153a..719b9f05 100644 --- a/internal/configure.zsh +++ b/internal/configure.zsh @@ -3,7 +3,7 @@ typeset -gr __p9k_zd_u=${__p9k_zd/#(#b)$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_installation_dir_u=${__p9k_installation_dir/#(#b)$HOME(|\/*)/'~'$match[1]} +typeset -gr __p9k_root_dir_u=${__p9k_root_dir/#(#b)$HOME(|\/*)/'~'$match[1]} function _p9k_can_configure() { emulate -L zsh @@ -23,10 +23,10 @@ function _p9k_can_configure() { [[ ! -e $__p9k_cfg_path || -f $__p9k_cfg_path || -h $__p9k_cfg_path ]] || $0_error "$__p9k_cfg_path_u is a special file" - [[ -r $__p9k_installation_dir/config/p10k-lean.zsh ]] || - $0_error "cannot read $__p9k_installation_dir_u/config/p10k-lean.zsh" - [[ -r $__p9k_installation_dir/config/p10k-classic.zsh ]] || - $0_error "cannot read $__p9k_installation_dir_u/config/p10k-classic.zsh" + [[ -r $__p9k_root_dir/config/p10k-lean.zsh ]] || + $0_error "cannot read $__p9k_root_dir_u/config/p10k-lean.zsh" + [[ -r $__p9k_root_dir/config/p10k-classic.zsh ]] || + $0_error "cannot read $__p9k_root_dir_u/config/p10k-classic.zsh" } always { unfunction $0_error } |