summaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-19 17:24:12 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-19 17:58:04 +0300
commite3743957469d508ff59c69df27b0dfcc1d1605a4 (patch)
tree897bae7cc0e4ccb0596d440e4436c4812293244b /internal/wizard.zsh
parent0a484d1d994de7febcdb1ffa9c9d2635c65c285d (diff)
follow ~/.zshrc and ~/.p10k.zsh symlinks
When the user tells the configuration wizard to apply changes to ~/.zshrc and ~/.p10k.zsh and these files are symlinks, apply changes to the targets. see #426
Diffstat (limited to 'internal/wizard.zsh')
-rwxr-xr-xinternal/wizard.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index 7e0ee37c..00966da7 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1410,12 +1410,12 @@ function ask_zshrc_edit() {
if [[ -e $__p9k_zshrc ]]; then
zshrc_content="$(<$__p9k_zshrc)" || quit -c
local lines=(${(f)zshrc_content})
- local f0=$__p9k_cfg_path
+ local f0=$__p9k_cfg_path_o
local f1=${(q)f0}
local f2=${(q-)f0}
local f3=${(qq)f0}
local f4=${(qqq)f0}
- local g1=${${(q)__p9k_cfg_path}/#(#b)${(q)HOME}\//'~/'}
+ local g1=${${(q)__p9k_cfg_path_o}/#(#b)${(q)HOME}\//'~/'}
if [[ -n ${(@M)lines:#(#b)[^#]#([^[:IDENT:]]|)source[[:space:]]##($f1|$f2|$f3|$f4|$g1)(|[[:space:]]*|'#'*)} ]]; then
zshrc_has_cfg=1
fi