From 7c4e62aa924c988909ce7cc8d78d2a4af09ca45f Mon Sep 17 00:00:00 2001 From: Andreas Lutro Date: Tue, 9 Apr 2024 15:28:02 +0200 Subject: [PATCH] add shrc files --- configs/shell/shrc.d/kubernetes.sh | 5 +++++ configs/shell/shrc.d/terraform.sh | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 configs/shell/shrc.d/kubernetes.sh create mode 100644 configs/shell/shrc.d/terraform.sh diff --git a/configs/shell/shrc.d/kubernetes.sh b/configs/shell/shrc.d/kubernetes.sh new file mode 100644 index 0000000..fd601dc --- /dev/null +++ b/configs/shell/shrc.d/kubernetes.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +function kubectx { + kubectl config set-context $(kubectl config get-contexts --output=name | fzf) +} diff --git a/configs/shell/shrc.d/terraform.sh b/configs/shell/shrc.d/terraform.sh new file mode 100644 index 0000000..f12ef4a --- /dev/null +++ b/configs/shell/shrc.d/terraform.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +function tffmt() { + if [ $# -eq 0 ]; then + terraform fmt -recursive + else + terraform fmt "$@" + fi +} +