summary refs log tree commit diff stats
path: root/hm/zsh/config/instant-prompt.zsh
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-04 17:06:23 +0200
committerSilas Schöffel <sils@sils.li>2024-04-04 17:06:23 +0200
commit924ec30e7075ea7a9dbac569a537d876f9146850 (patch)
tree11ff56048f05536a1905490137333b3596d0ee18 /hm/zsh/config/instant-prompt.zsh
parentusers/default.nix: delete (diff)
downloadnix-config-924ec30e7075ea7a9dbac569a537d876f9146850.tar.gz
nix-config-924ec30e7075ea7a9dbac569a537d876f9146850.zip
refactor: move users/sils dir to hm
Diffstat (limited to 'hm/zsh/config/instant-prompt.zsh')
-rw-r--r--hm/zsh/config/instant-prompt.zsh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hm/zsh/config/instant-prompt.zsh b/hm/zsh/config/instant-prompt.zsh
new file mode 100644
index 0000000..fe6cadb
--- /dev/null
+++ b/hm/zsh/config/instant-prompt.zsh
@@ -0,0 +1,9 @@
+# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
+# Initialization code that may require console input (password prompts, [y/n]
+# confirmations, etc.) must go above this block; everything else may go below.
+if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
+  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
+fi
+
+# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
+[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh