2022-05-24 13:32:52 +00:00
|
|
|
HISTFILE=~/.histfile
|
|
|
|
HISTSIZE=1000
|
|
|
|
SAVEHIST=1000
|
|
|
|
setopt appendhistory autocd
|
|
|
|
unsetopt beep extendedglob notify
|
|
|
|
bindkey -v
|
2022-05-24 13:50:47 +00:00
|
|
|
zstyle :compinstall filename '$HOME/.zshrc'
|
2022-05-24 13:32:52 +00:00
|
|
|
autoload -Uz compinit
|
|
|
|
compinit
|
2022-05-24 16:06:52 +00:00
|
|
|
PATH="$HOME/.local/bin:$PATH"
|
2022-05-24 13:32:52 +00:00
|
|
|
|
2022-05-24 17:44:43 +00:00
|
|
|
# Global aliases
|
2022-05-24 13:32:52 +00:00
|
|
|
alias ssh="TERM=xterm ssh"
|
2022-05-24 17:44:43 +00:00
|
|
|
alias sshpass="ssh -o PubkeyAuthentication=no"
|
2022-08-23 15:41:15 +00:00
|
|
|
alias scppass="scp -o PubkeyAuthentication=no"
|
2022-05-24 18:01:20 +00:00
|
|
|
alias k="kubectl"
|
|
|
|
alias t="tanzu"
|
2022-06-01 13:20:45 +00:00
|
|
|
alias ll="ls -la"
|
2022-05-24 17:44:43 +00:00
|
|
|
|
2023-01-19 22:17:43 +00:00
|
|
|
# Import local prefs from ~/.zshlocal, if present
|
|
|
|
if [ -f $HOME/.zshlocal ]; then
|
|
|
|
source $HOME/.zshlocal
|
2022-05-24 17:44:43 +00:00
|
|
|
fi
|
2022-05-24 13:32:52 +00:00
|
|
|
|
|
|
|
# Shell initializations
|
2022-07-03 16:57:30 +00:00
|
|
|
if type oh-my-posh > /dev/null; then
|
2022-07-08 01:11:14 +00:00
|
|
|
eval "$(oh-my-posh init zsh --config '~/.dotfiles/oh-my-posh/vpotato.minimal.omp.json')"
|
2022-07-03 16:52:10 +00:00
|
|
|
enable_poshtransientprompt
|
|
|
|
fi
|
2022-07-03 16:57:30 +00:00
|
|
|
if type mcfly > /dev/null; then
|
2022-07-03 16:52:10 +00:00
|
|
|
eval "$(mcfly init zsh)"
|
|
|
|
fi
|