aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-31 19:21:37 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-31 19:21:37 +0300
commita6b572da4597626fb55b11abb9d3fb0dc255a5cd (patch)
tree5811d3e3b3a83b985e236a8cd2646b306216202a /internal/p10k.zsh
parent070697a91401e1fb06ca7affa306b303b6d7701c (diff)
add p10k configure
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh10
1 files changed, 10 insertions, 0 deletions
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; }