summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf.d/99-nix.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/conf.d/99-nix.zsh b/conf.d/99-nix.zsh
index 2840fdc..8871312 100644
--- a/conf.d/99-nix.zsh
+++ b/conf.d/99-nix.zsh
@@ -1,5 +1,9 @@
alias nib='nix-build --no-out-link'
alias nip='nix-build --no-out-link "<nixpkgs>" -A'
+function cnip() {
+ cd $(nip "$1")
+}
+
function with() {
PKG="$1"
shift