ozsh/.zshrc

32 lines
981 B
Bash
Raw Normal View History

2021-02-21 04:37:27 +00:00
export OZSH_HOME="$HOME/.ozsh"
source $OZSH_HOME/libozsh.zsh
# link the p10k.zsh file
if [ ! -f "$HOME/.p10k.zsh" ]; then
ln -s "$OZSH_HOME/p10k.zsh" $HOME/.p10k.zsh
fi
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# 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
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# load theme
ozsh_load theme powerlevel10k
# load plugins
ozsh_load plugin zsh-autosuggestions
ozsh_load plugin zsh-syntax-highlighting
2021-02-21 05:40:57 +00:00
ozsh_load plugin zsh-completions
autoload -U compinit && compinit
2021-02-21 04:37:27 +00:00
ozsh_load plugin_omz gpg-agent
# optional settings
export PATH="$PATH:/usr/local/bin"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh