summaryrefslogtreecommitdiffstats
path: root/sh.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sh.nix33
1 files changed, 31 insertions, 2 deletions
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
+ ''; };
}