summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-10-21 22:59:09 +0200
committerAlan Pearce2019-10-21 22:59:09 +0200
commitdf9e2d5331a863e285bcfe66391728ce884a61bc (patch)
tree3ee732c5162c5dcfc0cf5ccf18f735e887ecae95
parent43eea14f7530366a5bd89328d557d3602e1af0d1 (diff)
downloadnixfiles-df9e2d5331a863e285bcfe66391728ce884a61bc.tar.lz
nixfiles-df9e2d5331a863e285bcfe66391728ce884a61bc.tar.zst
nixfiles-df9e2d5331a863e285bcfe66391728ce884a61bc.zip
Move javascript aliases to javascript file
-rw-r--r--user/settings/javascript.nix48
-rw-r--r--user/settings/zsh.nix44
2 files changed, 48 insertions, 44 deletions
diff --git a/user/settings/javascript.nix b/user/settings/javascript.nix
index 205dde83..5b5c82a8 100644
--- a/user/settings/javascript.nix
+++ b/user/settings/javascript.nix
@@ -47,6 +47,54 @@ in
     node2nixPackages.dockerfile-language-server-nodejs
     node2nixPackages.yaml-language-server
   ]);
+
+  programs.zsh.shellAliases = {
+    ava = "pnpx ava";
+    avt = "pnpx ava --tap";
+    avat = "pnpx ava --tap";
+    pino = "pino-pretty";
+    mocha = "pnpx mocha";
+    prettier = "pnpx prettier";
+    standard = "pnpx standard";
+    tsc = "pnpx tsc";
+    tslint = "pnpx tslint";
+    tsnode = "pnpx ts-node";
+
+    p = "pnpm";
+    pi = "pnpm install";
+    pl = "pnpm ls";
+    pr = "pnpm run";
+    prb = "pnpm run build";
+    pmi = "pnpm multi install";
+    pmx = "pnpm multi exec";
+    pmr = "pnpm multi run";
+    pa = "pnpm add --save";
+    pad = "pnpm add --save-dev";
+    pd = "pnpm uninstall";
+    pou = "pnpm outdated";
+    pt = "pnpm test";
+    pmt = "pnpm multi test";
+    pup = "pnpm update";
+    ppr = "pnpm prune";
+    pli = "pnpm link";
+    pul = "pnpm unlink";
+
+    np = "npm";
+    npi = "npm install";
+    npl = "npm ls";
+    npr = "npm run";
+    npb = "npm run build";
+    nprb = "npm run build";
+    npa = "npm install --save";
+    npad = "npm install --save-dev";
+    npd = "npm uninstall";
+    npt = "npm test";
+    npup = "npm update";
+    nppr = "npm prune";
+    npli = "npm link";
+    npul = "npm unlink";
+  };
+
   home.file.".npmrc".text = ''
     prefix=''${HOME}/.local
     //registry.npmjs.org/:_authToken=''${NPM_AUTH_TOKEN}
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 7a8f7ed8..a2c14586 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -161,16 +161,6 @@ in
       https = "http --default-scheme https";
       kns = "kubens";
       kx = "kubectx";
-      ava = "pnpx ava";
-      avt = "pnpx ava --tap";
-      avat = "pnpx ava --tap";
-      pino = "pino-pretty";
-      mocha = "pnpx mocha";
-      prettier = "pnpx prettier";
-      standard = "pnpx standard";
-      tsc = "pnpx tsc";
-      tslint = "pnpx tslint";
-      tsnode = "pnpx ts-node";
 
       history = "fc -l $(( $LINES - 2 ))";
       hist-freq-lines = "fc -l -10000 | cut -d' ' -f4- | sort | uniq -c | sort -g | tail -n100 | less";
@@ -229,40 +219,6 @@ in
       gmup = "git mup";
       grup = "git rup";
 
-      p = "pnpm";
-      pi = "pnpm install";
-      pl = "pnpm ls";
-      pr = "pnpm run";
-      prb = "pnpm run build";
-      pmi = "pnpm multi install";
-      pmx = "pnpm multi exec";
-      pmr = "pnpm multi run";
-      pa = "pnpm add --save";
-      pad = "pnpm add --save-dev";
-      pd = "pnpm uninstall";
-      pou = "pnpm outdated";
-      pt = "pnpm test";
-      pmt = "pnpm multi test";
-      pup = "pnpm update";
-      ppr = "pnpm prune";
-      pli = "pnpm link";
-      pul = "pnpm unlink";
-
-      np = "npm";
-      npi = "npm install";
-      npl = "npm ls";
-      npr = "npm run";
-      npb = "npm run build";
-      nprb = "npm run build";
-      npa = "npm install --save";
-      npad = "npm install --save-dev";
-      npd = "npm uninstall";
-      npt = "npm test";
-      npup = "npm update";
-      nppr = "npm prune";
-      npli = "npm link";
-      npul = "npm unlink";
-
       hos = "home-manager switch";
       hon = "home-manager news";
       hoh = "home-manager-help";