From b75905e0bed0b95758530dff316114b498a8ce41 Mon Sep 17 00:00:00 2001 From: ahwx Date: Tue, 17 Feb 2026 21:57:37 +0100 Subject: [PATCH] fix: cd function; fix an export --- modules/home/zsh.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix index 54f020d..dbde6ba 100644 --- a/modules/home/zsh.nix +++ b/modules/home/zsh.nix @@ -51,7 +51,7 @@ }; initContent = '' - export export PATH="''${PATH}:''${HOME}/.local/bin/:''${HOME}/.cargo/bin/:''${HOME}/.fzf/bin/" + export PATH="''${PATH}:''${HOME}/.local/bin/:''${HOME}/.cargo/bin/:''${HOME}/.fzf/bin/" autoload -U add-zsh-hook autoload -U compinit @@ -130,11 +130,11 @@ function cd() { if [ -f "$1" ]; then - ${pkgs.zoxide}/bin/zoxide "$(dirname "$1")" + z "$(dirname "$1")" return fi - ${pkgs.zoxide}/bin/zoxide $@ + z $@ } get-git-root() { @@ -253,7 +253,6 @@ ezit = "exit"; wlc = "wl-copy"; yt-dlp-audio = "yt-dlp -f 'ba' -x --audio-format mp3"; - open = "xdg-open"; tree = "eza --icons --tree --group-directories-first"; doas = "sudo"; sxiv = "nsxiv"; @@ -267,7 +266,6 @@ rm = "rm -i -v"; cat = "${lib.getExe pkgs.bat} --plain"; diff = "${lib.getExe pkgs.delta} --color-only"; - battery-left = "${lib.getExe pkgs.acpi} | cut -d' ' -f5"; github-actions = "${lib.getExe pkgs.act} -s GITHUB_TOKEN=\"$(${lib.getExe pkgs.github-cli} auth token)\""; tailscale = "sudo tailscale"; @@ -338,6 +336,7 @@ fd delta bat + # zoxide nix-search-fzf.zsh-shell-widget ]; }