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:
parent
5df78e6c8a
commit
f72140beae
|
@ -2,6 +2,6 @@
|
|||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
# [[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
|
||||
. "$HOME/.cargo/env"
|
||||
|
|
|
@ -13,6 +13,9 @@ nnoremap <C-K> <C-W><C-K>
|
|||
nnoremap <C-L> <C-W><C-L>
|
||||
nnoremap <C-H> <C-W><C-H>
|
||||
|
||||
nnoremap 0 ^
|
||||
nnoremap ^ 0
|
||||
|
||||
nnoremap vv vi
|
||||
|
||||
nnoremap <C-E> <C-E><C-E>
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue