From 1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Thu, 17 May 2018 11:23:05 +0200 Subject: Add cnip function --- conf.d/99-nix.zsh | 4 ++++ 1 file changed, 4 insertions(+) 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 "" -A' +function cnip() { + cd $(nip "$1") +} + function with() { PKG="$1" shift -- cgit v1.2.3