separate kubernetes and terraform fish abbrs

This commit is contained in:
Noah Masur 2022-06-21 08:33:05 -04:00
parent c08c5c5a9e
commit 1d9f48f5d3
5 changed files with 41 additions and 21 deletions

View File

@ -20,5 +20,6 @@ darwin.lib.darwinSystem {
../../modules/programming/nix.nix ../../modules/programming/nix.nix
../../modules/programming/terraform.nix ../../modules/programming/terraform.nix
../../modules/programming/lua.nix ../../modules/programming/lua.nix
../../modules/programming/kubernetes.nix
]; ];
} }

View File

@ -120,6 +120,12 @@
]; ];
}; };
programs.fish.shellAbbrs = {
ta = "tmux attach-session";
tan = "tmux attach-session -t noah";
tnn = "tmux new-session -s noah";
};
}; };
} }

View File

@ -0,0 +1,18 @@
{ config, pkgs, ... }: {
home-manager.users.${config.user} = {
home.packages = with pkgs; [ kubectl k9s ];
programs.fish.shellAbbrs = {
k = "kubectl";
pods = "kubectl get pods -A";
nodes = "kubectl get nodes";
deploys = "kubectl get deployments -A";
dash = "kube-dashboard";
ks = "k9s";
};
};
}

View File

@ -1,9 +1,16 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
home-manager.users.${config.user}.home.packages = with pkgs; [ home-manager.users.${config.user} = {
programs.fish.shellAbbrs = {
# Terraform
te = "terraform";
};
home.packages = with pkgs; [
terraform # Terraform executable terraform # Terraform executable
terraform-ls # Language server terraform-ls # Language server
tflint # Linter tflint # Linter
]; ];
};
} }

View File

@ -71,6 +71,7 @@
set -g fish_cursor_insert line set -g fish_cursor_insert line
set -g fish_cursor_visual block set -g fish_cursor_visual block
set -g fish_cursor_replace_one underscore set -g fish_cursor_replace_one underscore
set -x DIRENV_LOG_FORMAT ""
''; '';
loginShellInit = ""; loginShellInit = "";
shellAliases = { }; shellAliases = { };
@ -91,11 +92,6 @@
scs = "systemctl status"; scs = "systemctl status";
m = "make"; m = "make";
# Tmux
ta = "tmux attach-session";
tan = "tmux attach-session -t noah";
tnn = "tmux new-session -s noah";
# Vim (overwritten by Neovim) # Vim (overwritten by Neovim)
v = "vim"; v = "vim";
vl = "vim -c 'normal! `0'"; vl = "vim -c 'normal! `0'";
@ -114,22 +110,14 @@
publickey = "ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub"; publickey = "ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub";
forloop = "for i in (seq 1 100)"; forloop = "for i in (seq 1 100)";
# Nix
ns = "nix-shell -p";
# Docker # Docker
dc = "$DOTS/bin/docker_cleanup"; dc = "$DOTS/bin/docker_cleanup";
dr = "docker run --rm -it"; dr = "docker run --rm -it";
db = "docker build . -t"; db = "docker build . -t";
# Terraform
te = "terraform";
# Kubernetes
k = "kubectl";
pods = "kubectl get pods -A";
nodes = "kubectl get nodes";
deploys = "kubectl get deployments -A";
dash = "kube-dashboard";
ks = "k9s";
# Python # Python
py = "python"; py = "python";
po = "poetry"; po = "poetry";