diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-23 20:39:02 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-23 20:39:15 +0530 |
| commit | d4289976768c72d347ff2bdcf3062a8a2eb29fbb (patch) | |
| tree | f715f258fc6fbcf54d898aa91c9d5eb704c95e0a /external/zsh/aliases | |
| parent | 27496a4209360148a966bd5633923a4d91ae3e14 (diff) | |
| download | nixos-config-d4289976768c72d347ff2bdcf3062a8a2eb29fbb.tar.gz nixos-config-d4289976768c72d347ff2bdcf3062a8a2eb29fbb.zip | |
nix helper aliases
Diffstat (limited to 'external/zsh/aliases')
| -rw-r--r-- | external/zsh/aliases/dev.zsh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/external/zsh/aliases/dev.zsh b/external/zsh/aliases/dev.zsh index 9128777..1e6587f 100644 --- a/external/zsh/aliases/dev.zsh +++ b/external/zsh/aliases/dev.zsh @@ -1,11 +1,17 @@ alias aws="docker run --rm -it amazon/aws-cli" -nrx() { nix-shell -p nodejs-14_x --run "npm run $1"; } +# nix shell with zsh +nix-zsh() { nix-shell --run "WITH_NIX_PREFIX='${NX_PREFIX:-':'}' zsh" "$@"; } -with_node_14() { nix-shell -p nodejs-14_x --run 'WITH_NIX_PREFIX="node14" zsh'; } +# shell for node 14 +with_node_14() { NX_PREFIX="node14" nix-zsh -p nodejs-14_x "$@"; } -nix-zshell() { nix-shell --run 'WITH_NIX_PREFIX=":" zsh' "$@"; } +# shell for docker-compose +with_dcomp() { TMPDIR=$HOME/dump/tempdir NX_PREFIX=docker-compose nix-zsh -p docker-compose; } + +# npm run for node_14 +nrx() { with_node_14 --run "npm run $*"; } # :: Filename Pattern Replacetext far() { |
