dotfiles/.legacy_dotfiles/zsh/.zshrc

38 lines
890 B
Bash
Raw Normal View History

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