summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Höppner2018-05-17 11:23:05 +0200
committerTill Höppner2018-05-17 11:23:05 +0200
commit1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc (patch)
tree38f6e1aa81a3e022a0394de6690051b9079b4e21
parent858993dea89b4341f6470f29d23647de275d24b0 (diff)
downloadzsh-1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc.tar.gz
zsh-1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc.tar.xz
zsh-1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc.zip
Add cnip function
-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