summaryrefslogtreecommitdiff
path: root/home/zsh
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-26 13:38:52 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-26 13:38:52 -0400
commita59fd1167d445760b29bd7875eeae9d14a09b106 (patch)
tree8a8457e7c57a1565a5563ad303ac0f4dead649ad /home/zsh
parentmake system config more modular (diff)
downloaddotfiles-nix-a59fd1167d445760b29bd7875eeae9d14a09b106.tar.gz
dotfiles-nix-a59fd1167d445760b29bd7875eeae9d14a09b106.tar.bz2
dotfiles-nix-a59fd1167d445760b29bd7875eeae9d14a09b106.zip
add zoxide
Diffstat (limited to 'home/zsh')
-rw-r--r--home/zsh/default.nix5
-rw-r--r--home/zsh/zshrc4
2 files changed, 9 insertions, 0 deletions
diff --git a/home/zsh/default.nix b/home/zsh/default.nix
index ce1820e..5de1c7c 100644
--- a/home/zsh/default.nix
+++ b/home/zsh/default.nix
@@ -13,5 +13,10 @@
".zshrc".source = ./zshrc;
".zprofile".source = ./zprofile;
};
+
+ programs.zoxide = {
+ enable = true;
+ enableZshIntegration = true;
+ };
};
}
diff --git a/home/zsh/zshrc b/home/zsh/zshrc
index 0d53e0d..6a366a0 100644
--- a/home/zsh/zshrc
+++ b/home/zsh/zshrc
@@ -39,6 +39,10 @@ alias diff="diff --color=auto"
alias vim="nvim"
alias ssh='TERM=xterm-256color ssh' # xterm-kitty bad
+# zoxide
+eval "$(zoxide init zsh)"
+alias cd="z"
+
# nix rebuild
alias rs="sudo nixos-rebuild switch --flake ~/.config/nix#$(hostname)"
alias rh="home-manager switch --flake ~/.config/nix#$(hostname)"