dotfiles/zsh/.zshrc

38 lines
890 B
Bash
Raw Normal View History

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
# Global aliases
2022-05-24 13:32:52 +00:00
alias ssh="TERM=xterm ssh"
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"
2022-06-01 13:20:45 +00:00
alias ll="ls -la"
alias ccat='egrep -v "^\s*(#|$)"'
2023-01-19 22:17:43 +00:00
# Import local prefs from ~/.zshlocal, if present
if [ -f $HOME/.zshlocal ]; then
source $HOME/.zshlocal
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')"
enable_poshtransientprompt
fi
2022-07-03 16:57:30 +00:00
if type mcfly > /dev/null; then
eval "$(mcfly init zsh)"
fi
2023-04-25 15:35:27 +00:00
if [ -f $HOME/.ssh/id_ed25519 ]; then
eval "$(ssh-agent)"
ssh-add $HOME/.ssh/id_ed25519
fi
2023-02-23 15:32:26 +00:00