diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-02-27 14:04:39 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-02-27 14:04:39 +0100 |
| commit | 990449536712f886c800e55463aa4d854e34928f (patch) | |
| tree | 4d3d8b357e9ae7898da4131f62d1b24ca6a52e02 /share/home/zsh.nix | |
| parent | 264e95ed1c8c7cb9ec8319f51a2c07c8f53b10d1 (diff) | |
Refactor, test out fish on wonderland
Diffstat (limited to 'share/home/zsh.nix')
| -rw-r--r-- | share/home/zsh.nix | 65 |
1 files changed, 4 insertions, 61 deletions
diff --git a/share/home/zsh.nix b/share/home/zsh.nix index 4a52f5c..cbc8428 100644 --- a/share/home/zsh.nix +++ b/share/home/zsh.nix @@ -1,4 +1,6 @@ -{ pkgs, ... }: { +{ ... }: { + imports = [ ./shellenv.nix ]; + programs.zsh = { enable = true; enableAutosuggestions = true; @@ -7,65 +9,6 @@ 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"; - tempdir = "cd $(mktemp -d)"; - }; - }; - 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.starship.enableZshIntegration = true; } |
