diff --git a/.bashrc b/.bashrc index 1b20686..db22d90 100644 --- a/.bashrc +++ b/.bashrc @@ -82,7 +82,7 @@ if [ -x /usr/bin/dircolors ]; then fi # alias ls/tree to exa if exists -if [[ -x $(command -v exa) ]] ; then +if [[ -x $(command -v exa) ]]; then alias ls="exa --icons" alias tree="ls --tree" fi @@ -91,42 +91,42 @@ alias l='ls -l' alias ll='ls -la' # alternative find -if [[ -x "$(command -v fdfind)" ]] ; then +if [[ -x "$(command -v fdfind)" ]]; then alias fd='fdfind' fi # view/edit commands -if [[ -x "$(command -v view)" ]] ; then +if [[ -x "$(command -v view)" ]]; then alias v='view' fi -if [[ -x "$(command -v hx)" ]] ; then +if [[ -x "$(command -v hx)" ]]; then alias edit='hx' alias e='edit' fi # neovim -if [[ -x "$(command -v nvim)" ]] ; then +if [[ -x "$(command -v nvim)" ]]; then alias vim='nvim' fi # silver searcher with less -if [[ -x "$(command -v ag)" ]] ; then +if [[ -x "$(command -v ag)" ]]; then alias agl='ag --pager "less -RF"' fi # maven/java version -if [[ -x "$(command -v mvn)" ]] ; then +if [[ -x "$(command -v mvn)" ]]; then alias mvn11="JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 mvn" fi # kitty terminal -if [[ -x "$(command -v kitty)" ]] ; then +if [[ -x "$(command -v kitty)" ]]; then [[ "$TERM" == "xterm-kitty" ]] && alias ssh="kitty +kitten ssh" fi # kubecolor -if [[ -x "$(command -v kubecolor)" ]] ; then +if [[ -x "$(command -v kubecolor)" ]]; then alias k="kubecolor" alias wk="watch -c kubecolor --force-colors" complete -o default -F __start_kubectl kubecolor @@ -146,20 +146,20 @@ if ! shopt -oq posix; then fi # git completions for rgit -if [[ -x "$(command -v rgit)" ]] ; then - if [ -f /usr/share/bash-completion/completions/git ] ; then +if [[ -x "$(command -v rgit)" ]]; then + if [ -f /usr/share/bash-completion/completions/git ]; then . /usr/share/bash-completion/completions/git complete -o bashdefault -o default -o nospace -F __git_wrap__git_main rgit fi fi # kubectl completions -if [[ -x "$(command -v kubectl)" ]] ; then +if [[ -x "$(command -v kubectl)" ]]; then . <(kubectl completion bash) fi # avp completions -if [[ -x "$(command -v avp)" ]] ; then +if [[ -x "$(command -v avp)" ]]; then . <(avp completion) fi