diff options
author | Till Höppner | 2018-05-17 11:23:05 +0200 |
---|---|---|
committer | Till Höppner | 2018-05-17 11:23:05 +0200 |
commit | 1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc (patch) | |
tree | 38f6e1aa81a3e022a0394de6690051b9079b4e21 | |
parent | 858993dea89b4341f6470f29d23647de275d24b0 (diff) | |
download | zsh-1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc.tar.gz zsh-1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc.tar.xz zsh-1e52bc8501c042bd47cd67bdfbeb9cca2511d9cc.zip |
Add cnip function
-rw-r--r-- | conf.d/99-nix.zsh | 4 |
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 |