hm: Add zoxide

This commit is contained in:
Sweetbread 2024-08-25 21:53:34 +03:00
parent a57676c22d
commit e098439c67

View File

@ -1,4 +1,5 @@
{ config, ... }: { { config, ... }: {
programs.zoxide.enable = true;
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@ -23,12 +24,14 @@
se = "sudoedit"; se = "sudoedit";
ff = "fastfetch"; ff = "fastfetch";
cat = "bat"; cat = "bat";
cd = "z";
}; };
initExtra = '' initExtra = ''
if [ -z "''${WAYLAND_DISPLAY}" ] && [ "''${XDG_VTNR}" -eq 1 ]; then if [ -z "''${WAYLAND_DISPLAY}" ] && [ "''${XDG_VTNR}" -eq 1 ]; then
dbus-run-session Hyprland dbus-run-session Hyprland
fi fi
eval "$(zoxide init zsh)"
''; '';
history.size = 10000; history.size = 10000;