summaryrefslogtreecommitdiff
path: root/users/seth/shell
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-13 00:36:18 -0400
committerseth <[email protected]>2023-03-13 00:36:18 -0400
commit70530f45e0c6cfdea9303f1a44dfa29f26b4f5bd (patch)
treed83e50886cf85a31bc88134c86eb232dd0857d03 /users/seth/shell
parent40cb58751334841247c4b1d8fd6c3978eb24e339 (diff)
use p10k + enable direnv/nix-your-shell for zsh
Diffstat (limited to 'users/seth/shell')
-rw-r--r--users/seth/shell/zsh.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/users/seth/shell/zsh.nix b/users/seth/shell/zsh.nix
index 3e9d5e9..c5296cb 100644
--- a/users/seth/shell/zsh.nix
+++ b/users/seth/shell/zsh.nix
@@ -22,10 +22,16 @@
defaultKeymap = "emacs";
dotDir = ".config/zsh";
initExtra = ''
+ if [[ -r "$XDG_CACHE_HOME/p10k-instant-prompt-*.zsh" ]]; then
+ source "$XDG_CACHE_HOME/p10k-instant-prompt-*.zsh"
+ fi
autoload -Uz promptinit colors
promptinit
colors
+ direnv hook zsh | source
+ nix-your-shell zsh | source
+
zmodload zsh/zutil
zmodload zsh/complist
zstyle ":completion::*" group-name ""
@@ -54,6 +60,8 @@
zle -N clear-screen-and-scrollback
bindkey '^L' clear-screen-and-scrollback
+
+ [[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
'';
history = {
expireDuplicatesFirst = true;
@@ -81,6 +89,12 @@
}
{
+ name = "powerlevel10k";
+ src = pkgs.zsh-powerlevel10k;
+ file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
+ }
+
+ {
name = "zsh-autopair";
src = pkgs.zsh-autopair;
file = "share/zsh/zsh-autopair/autopair.zsh";