Don't bashrc on login.

Swap 0 and ^ in ideavimrc
alias k to kubectl
Add a little json 'arr' function
This commit is contained in:
Sage Vaillancourt 2024-07-24 09:40:50 -04:00
parent 5df78e6c8a
commit f72140beae
3 changed files with 17 additions and 1 deletions

View File

@ -2,6 +2,6 @@
# ~/.bash_profile # ~/.bash_profile
# #
[[ -f ~/.bashrc ]] && . ~/.bashrc # [[ -f ~/.bashrc ]] && . ~/.bashrc
. "$HOME/.cargo/env" . "$HOME/.cargo/env"

View File

@ -13,6 +13,9 @@ nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L> nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H> nnoremap <C-H> <C-W><C-H>
nnoremap 0 ^
nnoremap ^ 0
nnoremap vv vi nnoremap vv vi
nnoremap <C-E> <C-E><C-E> nnoremap <C-E> <C-E><C-E>

View File

@ -26,6 +26,17 @@ function roll {
fi 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 d4='roll 4'
alias 4='roll 4' alias 4='roll 4'
@ -127,6 +138,8 @@ function pwgen {
echo "$@ $(openssl rand -base64 64 | tr -d '012456789+/=\n')" echo "$@ $(openssl rand -base64 64 | tr -d '012456789+/=\n')"
} }
alias k='kubectl'
function kube-pod-name { function kube-pod-name {
local pods="$(kubectl get pods | grep "$1")" local pods="$(kubectl get pods | grep "$1")"
local selection="1" local selection="1"