aboutsummaryrefslogtreecommitdiff
path: root/share/home/zsh.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2023-11-03 15:59:16 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2023-11-03 15:59:16 +0100
commitf559671cae7b02526dedf7923b135c09e0d095d5 (patch)
tree0f273fb13211c4aa7cae2add41e3aa2b1c6d7785 /share/home/zsh.nix
Inital commit ;P
Diffstat (limited to 'share/home/zsh.nix')
-rw-r--r--share/home/zsh.nix72
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;
+}