From 01cd0e48da5aadeb4795af7074a731e2297d26b1 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Tue, 23 Jun 2026 19:29:13 +0000 Subject: [PATCH] Added starship, finish the config --- modules_dentritic/features/core/shell.nix | 51 ++++++++++++++++++++--- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/modules_dentritic/features/core/shell.nix b/modules_dentritic/features/core/shell.nix index 270b113..4e797d8 100644 --- a/modules_dentritic/features/core/shell.nix +++ b/modules_dentritic/features/core/shell.nix @@ -1,13 +1,52 @@ { self, inputs, ... }: { flake = { homeModules.shell = { pkgs, lib, ... }: { - programs.zsh = { - enable = true; - package = pkgs.zsh; - enableCompletion = true; - autocd = true; - initContent = lib.getExe self.packages.${pkgs.stdenv.hostPlatform.system}.myFastfetch; + programs = { + zsh = { + enable = true; + package = pkgs.zsh; + enableCompletion = true; + autocd = true; + initContent = lib.getExe self.packages.${pkgs.stdenv.hostPlatform.system}.myFastfetch; + + autosuggestion = { + enable = true; + strategy = [ "history" ]; + highlight = "fg=8"; + }; + + history = { + append = true; + extended = true; + ignoreSpace = false; + save = 100000; + size = 100000; + saveNoDups = true; + share = true; + }; + }; + starship = { + enable = true; + package = self.packages.${pkgs.stdenv.hostPlatform.system}.myStarship; + }; }; }; }; + + perSystem = { pkgs, lib, ... }: { + packages.myStarship = inputs.wrapper-modules.wrappers.starship.wrap { + inherit pkgs; + + settings = { + battery = { + full_symbol = "󰁹 "; + charging_symbol = "󰂄 "; + }; + }; + preset = [ + "nerd-font-symbols" + "bracketed-segments" + ]; + }; + }; }