.dotfiles/zsh/.zshrc

61 lines
1.7 KiB
Bash
Raw Normal View History

# zsh history file
export HISTFILE="$XDG_STATE_HOME/zsh/history"
2023-05-30 23:49:02 +02:00
2023-05-31 11:21:26 +02:00
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
2023-05-30 23:49:02 +02:00
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
2023-05-31 11:21:26 +02:00
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
2023-05-30 23:49:02 +02:00
fi
# completion
fpath=($ZDOTDIR/completions $fpath)
autoload -Uz compinit
compinit -d $XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION
zstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh/zcompcache
2023-05-30 23:49:02 +02:00
# pre plugin load
export NVM_COMPLETION=true
export NVM_AUTO_USE=true
# load antigen
typeset -a ANTIGEN_CHECK_FILES=(${ZDOTDIR:-~}/.zshrc ${ZDOTDIR:-~}/antigen.zsh)
source $ZDOTDIR/antigen.zsh
2023-05-30 23:49:02 +02:00
# oh-my-zsh library and git plugin
antigen use oh-my-zsh
antigen bundle git
2023-05-30 23:49:02 +02:00
# zsh users plugin
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
2023-05-30 23:49:02 +02:00
# other
antigen bundle lukechilds/zsh-nvm
# theme
antigen theme romkatv/powerlevel10k
# apply plugin load
antigen apply
2023-05-30 23:49:02 +02:00
# pyenv
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# ggman
eval "$(ggman shellrc)"
# gpg
export GPG_TTY=$(tty)
# custom functions and aliases
source "$ZDOTDIR/aliases.zsh"
source "$ZDOTDIR/scripts.zsh"
2023-05-30 23:49:02 +02:00
# opam configuration
[[ ! -r /Users/janezicmatej/.opam/opam-init/init.zsh ]] || source /Users/janezicmatej/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
2023-05-31 11:21:26 +02:00
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh