From 2844488b42a47a40cfa5d5b4fb307e2246fad8ab Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 23 Aug 2025 00:41:34 -0400 Subject: zsh and oh-my-zsh configuration added --- sh.nix | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'sh.nix') diff --git a/sh.nix b/sh.nix index 57f77dc..46ffbeb 100644 --- a/sh.nix +++ b/sh.nix @@ -17,6 +17,35 @@ in }; programs.zsh = { enable = true; - shellAliases = myAliases; - }; + enableCompletion = true; # Enables zsh-completions + autosuggestion.enable = true; # Enables zsh-autosuggestions + syntaxHighlighting.enable = true; # Enables zsh-syntax-highlighting + oh-my-zsh = { + enable = true; + plugins = [ + "git" # Git plugin + "colored-man-pages" # Colored man pages + "alias-finder" # Find aliases for commands + ]; + theme = ""; + }; + initContent = '' + # Powerlevel10k configuration + source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme + source ${./.p10k.zsh} + # Initialize zoxide + eval "$(zoxide init zsh)" + + # Initialize fzf + source <(fzf --zsh) + + # Source fzf-tab (needs to be after fzf) + source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh + + # Custom aliases + alias ll="ls -la" + alias gs="git status" + + bindkey '^ ' autosuggest-execute + ''; }; } -- cgit v1.3.1