From f72140beae0c47c9761471d696e5a60d7992b64f Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 24 Jul 2024 09:40:50 -0400 Subject: [PATCH] Don't bashrc on login. Swap 0 and ^ in ideavimrc alias k to kubectl Add a little json 'arr' function --- fake_home/.bash_profile | 2 +- fake_home/.ideavimrc | 3 +++ fake_home/.shell_aliases | 13 +++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/fake_home/.bash_profile b/fake_home/.bash_profile index a7a9ef5..63a17c5 100644 --- a/fake_home/.bash_profile +++ b/fake_home/.bash_profile @@ -2,6 +2,6 @@ # ~/.bash_profile # -[[ -f ~/.bashrc ]] && . ~/.bashrc +# [[ -f ~/.bashrc ]] && . ~/.bashrc . "$HOME/.cargo/env" diff --git a/fake_home/.ideavimrc b/fake_home/.ideavimrc index 8e52e1e..e322184 100644 --- a/fake_home/.ideavimrc +++ b/fake_home/.ideavimrc @@ -13,6 +13,9 @@ nnoremap nnoremap nnoremap +nnoremap 0 ^ +nnoremap ^ 0 + nnoremap vv vi nnoremap diff --git a/fake_home/.shell_aliases b/fake_home/.shell_aliases index 99cfb2b..6c91894 100755 --- a/fake_home/.shell_aliases +++ b/fake_home/.shell_aliases @@ -26,6 +26,17 @@ function roll { fi } +function arr { + local json="[" + for var in "$@" + do + json="$json$(echo "$var" | jq -R)," + done + json=${json:0:-1} + json="$json]" + echo "$json" | jq --indent 0 +} + alias d4='roll 4' alias 4='roll 4' @@ -127,6 +138,8 @@ function pwgen { echo "$@ $(openssl rand -base64 64 | tr -d '012456789+/=\n')" } +alias k='kubectl' + function kube-pod-name { local pods="$(kubectl get pods | grep "$1")" local selection="1"