40 lines
945 B
Bash
40 lines
945 B
Bash
# set up environment
|
|
export PURE_GIT_PULL=0
|
|
export GPG_TTY=$(tty)
|
|
export HISTSIZE=100000
|
|
export HISTFILE="$HOME/.zsh_history"
|
|
export SAVEHIST=$HISTSIZE
|
|
|
|
# set zsh options and features
|
|
setopt autocd
|
|
autoload -Uz compinit && compinit
|
|
setopt extended_history
|
|
setopt inc_append_history
|
|
setopt share_history
|
|
|
|
# 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"
|
|
|
|
# source external stuff
|
|
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
|
source ~/skynet/zsh/catppuccin_mocha-zsh-syntax-highlighting.zsh
|
|
source ~/skynet/zsh/zsh-grc
|
|
|
|
# keybindings
|
|
bindkey "^[[1~" beginning-of-line
|
|
bindkey "^[[4~" end-of-line
|
|
bindkey "^[[3~" delete-char
|
|
|
|
# set up directory hashes
|
|
if [ -f ~/.zalias ]; then
|
|
source ~/.zalias
|
|
fi
|