From 6db32ff89bc1cbb004e77b744afa84d155a3eaef Mon Sep 17 00:00:00 2001 From: Aditya Date: Fri, 12 Apr 2024 17:15:57 +0530 Subject: [PATCH] zsh --- modules/home-manager/zsh/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/zsh/default.nix b/modules/home-manager/zsh/default.nix index 19eaeeb..734daa8 100644 --- a/modules/home-manager/zsh/default.nix +++ b/modules/home-manager/zsh/default.nix @@ -1,6 +1,7 @@ { config, lib, + pkgs, ... }: { options = { @@ -19,11 +20,13 @@ plugins = ["git" "colored-man-pages" "extract" "sudo"]; }; initExtra = '' - eval "$(direnv hook zsh)" + eval "$(${lib.getExe pkgs.direnv} hook zsh)" eval "$(starship init zsh)" - alias vv=nvim - alias yt-dlp-1080="yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'" ''; + home.shellAliases = { + vv = "nvim"; + yt-dlp-1080 = "yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"; + }; }; }; }