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