Make z a zsh plugin

This commit is contained in:
Sijmen 2023-06-19 14:19:44 +02:00
parent 34de9f555b
commit 77e09e2191
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
1 changed files with 10 additions and 5 deletions

View File

@ -26,6 +26,16 @@
prezto.enable = true; prezto.enable = true;
autocd = true; autocd = true;
plugins = [ plugins = [
{
name = "zsh-z";
file = "zsh-z.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "agkozak";
repo = "zsh-z";
rev = "dc9e2bc0cdbaa0a507371c248d3dcc9f58db8726";
sha256 = "sha256-T0iZK9Tb7ExJaZ6e2UmwecnKHMQilwAPkyAa/uhqrw0=";
};
}
{ {
name = "zsh-nix-shell"; name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh"; file = "nix-shell.plugin.zsh";
@ -38,11 +48,6 @@
} }
]; ];
initExtra = '' initExtra = ''
source ${pkgs.fetchurl {
url = "https://raw.githubusercontent.com/agkozak/zsh-z/master/zsh-z.plugin.zsh";
sha256 = "8be9f089d8bb596a2679f9127f37276a8c1aeba9b5047456923d49eb2af61156";
}}
# SSH agent # SSH agent
eval $(${pkgs.openssh}/bin/ssh-agent) > /dev/null eval $(${pkgs.openssh}/bin/ssh-agent) > /dev/null
trap 'test -n "$SSH_AUTH_SOCK" && eval $(${pkgs.openssh}/bin/ssh-agent -k)' 0 trap 'test -n "$SSH_AUTH_SOCK" && eval $(${pkgs.openssh}/bin/ssh-agent -k)' 0