all repos — nixfiles @ 19420390a4e0c8fcc8fb63dc126be65ba85d9f34

System and user configuration, managed by nix and home-manager

zsh: add docker aliases
Alan Pearce alan@alanpearce.eu
Thu, 17 Oct 2019 14:03:58 +0200
commit

19420390a4e0c8fcc8fb63dc126be65ba85d9f34

parent

2666d51f1c806ab4df918fcfc644e62a1c5fddc7

1 files changed, 18 insertions(+), 0 deletions(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -183,6 +183,24 @@ # Enable the following commands to support aliases.       sudo = "sudo ";
       watch = "watch ";
 
+      d = "docker";
+      db = "docker build";
+      dr = "docker run";
+      di = "docker image";
+      dj = "docker pull";
+      dk = "docker push";
+
+      dc = "docker-compose";
+      dcb = "docker-compose build";
+      dcd = "docker-compose down";
+      dcj = "docker-compose pull";
+      dck = "docker-compose push";
+      dcl = "docker-compose logs";
+      dclf = "docker-compose logs -f";
+      dcu = "docker-compose up";
+      dcud = "docker-compose up -d";
+      dcr = "docker-compose restart";
+
       g = "rg";
 
       ga = "git add";