about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-03-29T16·51-0400
committerGriffin Smith <root@gws.fyi>2020-03-29T16·51-0400
commit81628a9c399be6747c6c702a54fed7ed95266e7a (patch)
treeea0da251b66dbc0170d07e444427182024a6c2f4
parent3f1cff7068d012e5b9a56f9d61659be5172aa987 (diff)
Uncommitted kube aliases from old config
-rw-r--r--home/modules/shell.nix39
1 files changed, 31 insertions, 8 deletions
diff --git a/home/modules/shell.nix b/home/modules/shell.nix
index e37272cd4ecc..9d74bc73baff 100644
--- a/home/modules/shell.nix
+++ b/home/modules/shell.nix
@@ -22,11 +22,40 @@
       hms = "home-manager switch";
       nor = "sudo nixos-rebuild switch";
       nrs = nor;
-      vihome = "vim ~/.config/nixpkgs/home.nix && home-manager switch";
-      virc = "vim ~/.config/nixpkgs/home/shell.nix && home-manager switch && source ~/.zshrc";
+      nrb = "sudo nixos-rebuild boot";
+      vihome = "vim ~/code/system/home/home.nix && home-manager switch";
+      virc = "vim ~/code/system/home/modules/shell.nix && home-manager switch && source ~/.zshrc";
+      visystem = "sudo vim /etc/nixos/configuration.nix && sudo nixos-rebuild switch";
 
       # Nix
       ns = "nix-shell";
+      nb = "nix build -f .";
+      "nc." = "nix copy -f . --to https://nix.urbinternal.com";
+
+      # Kubernetes
+      "kc" = "kubectl";
+      "kg" = "kc get";
+      "kga" = "kc get --all-namespaces";
+      "kpd" = "kubectl get pods";
+      "kpa" = "kubectl get pods --all-namespaces";
+      "kdep" = "kubectl get deployments";
+      "ked" =  "kubectl edit deployment";
+      "kpw" = "kubectl get pods -w";
+      "kew" = "kubectl get events -w";
+      "kdel" = "kubectl delete";
+      "knw" = "kubectl get nodes -w";
+      "arsy" = "argocd app sync --prune";
+
+      # Docker and friends
+      "dcu" = "docker-compose up";
+      "dcud" = "docker-compose up -d";
+      "dc" = "docker-compose";
+      "dcr" = "docker-compose restart";
+      "dclf" = "docker-compose logs -f";
+      "dck" = "docker";
+      "dockerclean" = "dockercleancontainers && dockercleanimages";
+      "dockercleanimages" = "docker images -a --no-trunc | grep none | awk '{print \$$3}' | xargs -L 1 -r docker rmi";
+      "dockercleancontainers" = "docker ps -a --no-trunc| grep 'Exit' | awk '{print \$$1}' | xargs -L 1 -r docker rm";
 
       # Aliases from old config
       stck = "dirs -v";
@@ -50,12 +79,6 @@
       "gnn" = "gn notebook-list";
       "mytl" = "t tl $TWITTER_WHOAMI";
       "first" = "awk '{print \$$1}'";
-      "dcu" = "docker-compose up";
-      "dc" = "docker-compose";
-      "dck" = "docker";
-      "dockerclean" = "dockercleancontainers && dockercleanimages";
-      "dockercleanimages" = "docker images -a --no-trunc | grep none | awk '{print \$$3}' | xargs -L 1 -r docker rmi";
-      "dockercleancontainers" = "docker ps -a --no-trunc| grep 'Exit' | awk '{print \$$1}' | xargs -L 1 -r docker rm";
       "cmt" = "git log --oneline | fzf-tmux | awk '{print \$$1}'";
       "workmon" = "xrandr --output DP-2 --pos 1440x900 --primary";
       "vi" = "vim";