diff options
Diffstat (limited to 'sh.nix')
| -rw-r--r-- | sh.nix | 33 |
1 files changed, 31 insertions, 2 deletions
@@ -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 + ''; }; } |
