Make z a zsh plugin
This commit is contained in:
parent
34de9f555b
commit
77e09e2191
|
@ -26,6 +26,16 @@
|
|||
prezto.enable = true;
|
||||
autocd = true;
|
||||
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";
|
||||
file = "nix-shell.plugin.zsh";
|
||||
|
@ -38,11 +48,6 @@
|
|||
}
|
||||
];
|
||||
initExtra = ''
|
||||
source ${pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/agkozak/zsh-z/master/zsh-z.plugin.zsh";
|
||||
sha256 = "8be9f089d8bb596a2679f9127f37276a8c1aeba9b5047456923d49eb2af61156";
|
||||
}}
|
||||
|
||||
# SSH agent
|
||||
eval $(${pkgs.openssh}/bin/ssh-agent) > /dev/null
|
||||
trap 'test -n "$SSH_AUTH_SOCK" && eval $(${pkgs.openssh}/bin/ssh-agent -k)' 0
|
||||
|
|
Loading…
Reference in New Issue