63 lines
1.6 KiB
Bash
63 lines
1.6 KiB
Bash
# 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
|
|
|
|
export PATH=$PATH:~/bin:~/.local/bin
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
export EDITOR='nvim'
|
|
export GPG_TTY=$(tty)
|
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
#ZSH_THEME_RANDOM_CANDIDATES=( "cypher" "eastwood" "gallois" )
|
|
# DISABLE_AUTO_TITLE="true"
|
|
ENABLE_CORRECTION="true"
|
|
HIST_STAMPS="yyyy-mm-dd"
|
|
HISTSIZE=100000
|
|
|
|
plugins=(
|
|
zsh-autosuggestions
|
|
zsh-syntax-highlighting
|
|
last-working-dir
|
|
zsh-vi-mode
|
|
fzf-zsh-plugin
|
|
sudo
|
|
aliases
|
|
alias-finder
|
|
colored-man-pages
|
|
dircycle
|
|
dirhistory
|
|
zoxide
|
|
dotenv
|
|
genpass
|
|
history
|
|
web-search
|
|
command-not-found
|
|
git-prompt
|
|
git
|
|
ubuntu
|
|
ansible
|
|
docker
|
|
docker-compose
|
|
)
|
|
|
|
# Fix ctrl+r
|
|
source $HOME/.oh-my-zsh/custom/plugins/zsh-vi-mode/zsh-vi-mode.plugin.zsh
|
|
zvm_after_init_commands+=('[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh')
|
|
|
|
# Plugin Options
|
|
ZSH_ALIAS_FINDER_AUTOMATIC=true
|
|
|
|
# Load Aliases
|
|
if [ -f $HOME/.zsh_aliases ]; then
|
|
source $HOME/.zsh_aliases
|
|
fi
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
#eval "$(zoxide init zsh)"
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|