aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorDominic Reich <dominic@noreply.oe7drt.com>2023-12-08 20:49:24 +0300
committerDominic Reich <dominic@noreply.oe7drt.com>2023-12-08 20:49:24 +0300
commit44f754d711c108dbbbfc2e0612961cd44afb71ea (patch)
tree536e1f5fd391c6c2bf9b06fe4349fc8e2ca29936 /internal
parent47b0187a675afed6b49007fe1915b2c0fe94b7bc (diff)
use "rm" instead of "unlink" to delete old config file
Diffstat (limited to 'internal')
-rw-r--r--internal/wizard.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index b87f0dfc..9dd48e42 100644
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1950,7 +1950,7 @@ function generate_config() {
command mkdir -p -- ${__p9k_cfg_path:h} || return
if [[ -e $__p9k_cfg_path ]]; then
- unlink $__p9k_cfg_path || return
+ rm $__p9k_cfg_path || return
fi
print -lr -- "$header" "$lines[@]" >$__p9k_cfg_path
}