2021-03-20 22:36:25 +00:00
|
|
|
# Always start tmux if it isn't yet.
|
|
|
|
if [ -z "$TMUX" ]
|
|
|
|
then
|
|
|
|
tmux
|
|
|
|
fi
|
|
|
|
|
|
|
|
# History improvements
|
|
|
|
export HISTFILE=~/.zsh_history
|
|
|
|
export HISTFILESIZE=1000000000
|
|
|
|
export HISTSIZE=1000000000
|
|
|
|
export SAVEHIST=100000
|
|
|
|
setopt INC_APPEND_HISTORY
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
|
|
|
|
|
|
# PATH
|
|
|
|
export PATH=$PATH:$HOME/.bin
|
|
|
|
|
|
|
|
# ALIASES
|
|
|
|
alias k=kubectl
|
|
|
|
|
|
|
|
# TOOLS
|
|
|
|
kubectl () {
|
|
|
|
command kubectl $*
|
|
|
|
if [[ -z $KUBECTL_COMPLETE ]]
|
|
|
|
then
|
|
|
|
source <(command kubectl completion zsh)
|
|
|
|
KUBECTL_COMPLETE=1
|
|
|
|
fi
|
|
|
|
}
|
2021-03-21 07:23:10 +00:00
|
|
|
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
|
|
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
2021-03-20 22:36:25 +00:00
|
|
|
|
|
|
|
# Starship
|
|
|
|
export STARSHIP_CONFIG=~/.starship.toml
|
|
|
|
eval "$(starship init zsh)"
|