Skip to content

Instantly share code, notes, and snippets.

@NWuensche
Created August 19, 2017 16:41
Show Gist options
  • Save NWuensche/af773ccdf68516cf6366d30ba11e7ad9 to your computer and use it in GitHub Desktop.
Save NWuensche/af773ccdf68516cf6366d30ba11e7ad9 to your computer and use it in GitHub Desktop.
programs.zsh = {
enable = true;
ohMyZsh = let
packages = [
{
owner = "nwuensche";
repo = "dotFiles";
rev = "1.0";
sha256 = "0n8xagqilkw13h20knb6by6ycpqjrx0qdjnpiaizbfkj8j5p4nyj";
}
];
fetchToFolder = { repo, ...}@attrs:
pkgs.fetchFromGitHub (attrs // {
extraPostFetch = ''
tmp=$(mktemp -d)
mv $out/* $tmp
mkdir $out/${repo}
mv $tmp/* $out/${repo}
'';
});
custom = pkgs.buildEnv {
name = "zsh-custom";
paths = builtins.map fetchToFolder packages;
};
in
{
enable = true;
custom = custom.outPath;
theme = "terminalStuff/agnoster";
plugins = [ "git" "pass" "brew" "colored-man" "colorize" ];
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment