diff options
Diffstat (limited to 'share/home/zsh.nix')
| -rw-r--r-- | share/home/zsh.nix | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/share/home/zsh.nix b/share/home/zsh.nix new file mode 100644 index 0000000..ef79acb --- /dev/null +++ b/share/home/zsh.nix @@ -0,0 +1,72 @@ +{ pkgs, ... }: { + programs.zsh = { + enable = true; + enableAutosuggestions = true; + enableCompletion = true; + syntaxHighlighting.enable = true; + enableVteIntegration = true; + autocd = true; + dotDir = ".config/zsh"; + + shellAliases = { + battery-status = '' + upower -i $(upower -e | grep BAT) | grep -E "state|to full|percentage" + ''; + ip = ''ip --color=auto''; + ltg = "ls --git --tree"; + ltgi = "ltg --git-ignore"; + sl = "sl -awFc5"; + }; + }; + home.packages = with pkgs; [ sl ]; + + programs.eza = { + enable = true; + enableAliases = true; + icons = true; + extraOptions = [ "--header" "--group-directories-first" "--long" ]; + }; + + programs.starship = { + enable = true; + enableZshIntegration = true; + + # settings = let + # lightblue-bg = "bg:#769ff0"; + # lightblue-fg = "fg:#e3e5e5"; + # lightblue = "${lightblue-fg} ${lightblue-bg}"; + # in { + # format = lib.concatStrings [ + # "[░▒▓](#a3aed2)" + # "[$username @ $hostname](${lightblue})" + # "$directory" + # "$rust" + # "$package" + # "\n" + # "> " + # ]; + # + # hostname = { + # ssh_only = false; + # format = "[$hostname]($style)"; + # trim_at = ""; # disable trimming + # style = lightblue; + # }; + # + # username = { + # show_always = true; + # format = "[$user]($style)"; + # style_user = lightblue; + # style_root = "${lightblue-bg} fg:red bold"; + # }; + # + # directory = { + # format = "[ $path ]($style)"; + # truncation_length = 3; + # truncation_symbol = "…/"; + # }; + # }; # end of settings + }; # end of programs.starship + + programs.wezterm.enableZshIntegration = true; +} |
