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/wizard.zsh | |
parent | e28d0c37c9d25454bd9c9262df7a04b557e8a9f5 (diff) |
cleanup
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-x | internal/wizard.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 362b8393..83ec27b1 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -4,8 +4,8 @@ emulate -L zsh setopt extended_glob noaliases () { -typeset -gr __p9k_installation_dir=${1:-${0:h:h:A}} -source $__p9k_installation_dir/internal/configure.zsh || return +typeset -gr __p9k_root_dir=${1:-${0:h:h:A}} +source $__p9k_root_dir/internal/configure.zsh || return local POWERLEVEL9K_MODE cap_lock style config_backup local -i cap_diamond cap_python cap_narrow_icons num_lines config_overwrite @@ -286,7 +286,7 @@ function ask_config_overwrite() { } function generate_config() { - local base && base="$(<$__p9k_installation_dir/config/p10k-$style.zsh)" || return + local base && base="$(<$__p9k_root_dir/config/p10k-$style.zsh)" || return local lines=("${(@f)base}") function sub() { lines=("${(@)lines/# typeset -g POWERLEVEL9K_$1=*/ typeset -g POWERLEVEL9K_$1=$2}") @@ -324,7 +324,7 @@ function generate_config() { } _p9k_can_configure || return -source $__p9k_installation_dir/internal/icons.zsh || return +source $__p9k_root_dir/internal/icons.zsh || return while true; do ask_diamond || { (( $? == 2 )) && continue || return } |