zsh: added build function to test nix file expressions

This commit is contained in:
Tigor Hutasuhut 2024-07-26 00:16:08 +07:00
parent 9a1a807c52
commit 5560bbb27f

View file

@ -89,6 +89,10 @@ in
find $(nix build "nixpkgs#$1" --no-link --print-out-paths)
}
build() {
nix build --impure --expr "with import <nixpkgs> {}; callPackage $1 {}"
}
# Completion settings
## Case insensitive completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'