summaryrefslogtreecommitdiff
path: root/users/seth/shell
diff options
context:
space:
mode:
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";