ozsh/.zshrc

43 lines
1.3 KiB
Bash
Raw Normal View History

2021-02-21 04:37:27 +00:00
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
2021-03-08 10:04:11 +00:00
ozsh_load theme powerlevel10k "https://github.com/romkatv/powerlevel10k"
2021-02-21 04:37:27 +00:00
# load plugins
2021-03-08 10:04:11 +00:00
ozsh_load plugin zsh-autosuggestions "https://github.com/zsh-users/zsh-autosuggestions"
ozsh_load plugin zsh-syntax-highlighting "https://github.com/zsh-users/zsh-syntax-highlighting"
ozsh_load plugin zsh-completions "https://github.com/zsh-users/zsh-completions"
2021-02-21 05:40:57 +00:00
autoload -U compinit && compinit
2021-02-21 04:37:27 +00:00
ozsh_load plugin_omz gpg-agent
2021-03-08 10:04:11 +00:00
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
#
# User-specific settings
#
set -o emacs
2021-02-21 04:37:27 +00:00
# optional settings
export PATH="$PATH:/usr/local/bin"
2021-03-08 10:04:11 +00:00
#
# persist history
HISTFILE=$HOME/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory