2023-04-06 09:02:46 -05:00
|
|
|
# set up environment
|
|
|
|
export PURE_GIT_PULL=0
|
|
|
|
export GPG_TTY=$(tty)
|
2023-04-10 17:47:48 -05:00
|
|
|
export HISTSIZE=100000
|
|
|
|
export HISTFILE="$HOME/.zsh_history"
|
|
|
|
export SAVEHIST=$HISTSIZE
|
2023-04-06 09:02:46 -05:00
|
|
|
|
2023-04-06 09:09:15 -05:00
|
|
|
# set zsh options and features
|
2023-04-06 09:02:46 -05:00
|
|
|
setopt autocd
|
2023-04-06 09:09:15 -05:00
|
|
|
autoload -Uz compinit && compinit
|
2023-04-10 17:47:48 -05:00
|
|
|
setopt extended_history
|
|
|
|
setopt inc_append_history
|
|
|
|
setopt share_history
|
2023-04-06 09:02:46 -05:00
|
|
|
|
|
|
|
# load zsh plugins
|
|
|
|
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
|
|
|
|
|
|
|
|
plug "mafredri/zsh-async"
|
|
|
|
plug "sindresorhus/pure"
|
|
|
|
plug "zsh-users/zsh-autosuggestions"
|
|
|
|
plug "zsh-users/zsh-syntax-highlighting"
|
|
|
|
plug "zap-zsh/exa"
|
|
|
|
plug "zap-zsh/fzf"
|
|
|
|
plug "fdellwing/zsh-bat"
|
2023-04-23 13:45:16 -05:00
|
|
|
plug "lukechilds/zsh-nvm"
|
2023-04-06 09:02:46 -05:00
|
|
|
|
|
|
|
# source external stuff
|
|
|
|
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
|
|
|
source ~/skynet/zsh/catppuccin_mocha-zsh-syntax-highlighting.zsh
|
2023-04-06 10:44:47 -05:00
|
|
|
source ~/skynet/zsh/zsh-grc
|
2023-04-06 09:02:46 -05:00
|
|
|
|
2023-04-10 17:47:48 -05:00
|
|
|
# keybindings
|
2023-04-14 15:51:28 -05:00
|
|
|
bindkey "^[[1~" beginning-of-line
|
|
|
|
bindkey "^[[4~" end-of-line
|
2023-04-10 17:47:48 -05:00
|
|
|
bindkey "^[[3~" delete-char
|
|
|
|
|
2023-04-06 09:02:46 -05:00
|
|
|
# set up directory hashes
|
2023-04-06 10:44:47 -05:00
|
|
|
if [ -f ~/.zalias ]; then
|
|
|
|
source ~/.zalias
|
|
|
|
fi
|