30 lines
915 B
Bash
30 lines
915 B
Bash
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
|
|
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
|