zsh: added build function to test nix file expressions
This commit is contained in:
parent
9a1a807c52
commit
5560bbb27f
|
@ -89,6 +89,10 @@ in
|
||||||
find $(nix build "nixpkgs#$1" --no-link --print-out-paths)
|
find $(nix build "nixpkgs#$1" --no-link --print-out-paths)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
nix build --impure --expr "with import <nixpkgs> {}; callPackage $1 {}"
|
||||||
|
}
|
||||||
|
|
||||||
# Completion settings
|
# Completion settings
|
||||||
## Case insensitive completion
|
## Case insensitive completion
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||||
|
|
Loading…
Reference in a new issue