aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/configure.zsh2
-rwxr-xr-xinternal/p10k.zsh10
-rwxr-xr-xinternal/wizard.zsh6
3 files changed, 14 insertions, 4 deletions
diff --git a/internal/configure.zsh b/internal/configure.zsh
index 9e676183..4dc8de1c 100644
--- a/internal/configure.zsh
+++ b/internal/configure.zsh
@@ -14,7 +14,7 @@ function _p9k_can_configure() {
setopt err_return extended_glob no_prompt_{bang,subst} prompt_{cr,percent,sp}
[[ $1 == '-q' ]] && local -i q=1 || local -i q=0
function $0_error() {
- (( q )) || print -P "%1F[ERROR]%f %Bp9k_configure%b: $1" >&2
+ (( q )) || print -P "%1F[ERROR]%f %Bp10k configure%b: $1" >&2
return 1
}
{
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 4059bd87..71a47362 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4329,6 +4329,16 @@ prompt_powerlevel9k_teardown() {
fi
}
+function p10k() {
+ emulate -L zsh && setopt no_hist_expand extended_glob
+ if [[ $# == 1 && $1 == configure ]]; then
+ p9k_configure
+ else
+ print -P "Usage: %2Fp10k%f %Bconfigure%b" >&2
+ return 1
+ fi
+}
+
# Hook for zplugin.
powerlevel10k_plugin_unload() { prompt_powerlevel9k_teardown; }
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index a26de7df..066be483 100755
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -138,7 +138,7 @@ function quit() {
if (( force )); then
print -P "Powerlevel10k configuration wizard has been aborted. To run it again, type:"
print -P ""
- print -P " %2Fp9k_configure%f"
+ print -P " %2Fp10k%f %Bconfigure%b"
print -P ""
else
print -P "Powerlevel10k configuration wizard has been aborted. It will run again"
@@ -150,7 +150,7 @@ function quit() {
print -P ""
print -P "To run Powerlevel10k configuration wizard right now, type:"
print -P ""
- print -P " %2Fp9k_configure%f"
+ print -P " %2Fp10k%f %Bconfigure%b"
print -P ""
fi
exit 1
@@ -936,7 +936,7 @@ function write_zshrc() {
fi
local comments=(
- "# To customize prompt, run \`p9k_configure\` or edit $__p9k_cfg_path_u."
+ "# To customize prompt, run \`p10k configure\` or edit $__p9k_cfg_path_u."
)
print -lr -- "" $comments "source $__p9k_cfg_path_u" >>$__p9k_zshrc