summaryrefslogtreecommitdiffstats
path: root/sh.nix
diff options
context:
space:
mode:
authorAndrew <admonty1@protonmail.com>2025-08-23 00:41:34 -0400
committerAndrew <admonty1@protonmail.com>2025-08-23 00:41:34 -0400
commit2844488b42a47a40cfa5d5b4fb307e2246fad8ab (patch)
tree04f30fb1532d410ebefbe742ea2001302d644488 /sh.nix
parentghostty configuration (diff)
downloadnixos-2844488b42a47a40cfa5d5b4fb307e2246fad8ab.tar.gz
nixos-2844488b42a47a40cfa5d5b4fb307e2246fad8ab.tar.bz2
nixos-2844488b42a47a40cfa5d5b4fb307e2246fad8ab.zip
zsh and oh-my-zsh configuration added
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
+ ''; };
}