dotfiles/zsh/zshrc

50 lines
1.3 KiB
Bash
Raw Normal View History

2021-02-04 14:16:29 +01:00
# Enable Powerlevel10k Prompt
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
2021-02-03 22:29:58 +01:00
2021-02-04 14:16:29 +01:00
# Specify directory for Antigen bundles
ADOTDIR=$HOME/.zsh/antigen-bundles
# Include Antigen Script
source $HOME/.zsh/antigen/antigen.zsh
2021-02-03 22:29:58 +01:00
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
2021-02-04 14:16:29 +01:00
# Import local plugins
source $HOME/.zsh/plugins/colored-man-pages.zsh
source $HOME/.zsh/plugins/colorize.zsh
source $HOME/.zsh/plugins/interactive-cd.zsh
2021-02-11 18:51:04 +01:00
#source $HOME/.zsh/plugins/docker-auto-complete.zsh # Requires Docker
2021-02-04 14:16:29 +01:00
# Enable autocomplete
autoload -Uz compinit
compinit
2021-02-04 14:16:29 +01:00
# Import local aliases
source $HOME/.zsh/aliases/ansible-aliases.zsh
source $HOME/.zsh/aliases/common-aliases.zsh
#source $HOME/.zsh/aliases/git-aliases.zsh
source $HOME/.zsh/aliases/lol-aliases.zsh
source $HOME/.zsh/aliases/npm-aliases.zsh
source $HOME/.zsh/aliases/tmux-aliases.zsh
# Add plugins to bundle
antigen bundles <<EOBUNDLES
2021-02-10 16:36:28 +01:00
command-not-found
zsh-users/zsh-autosuggestions
zsh-users/zsh-syntax-highlighting
psprint/zsh-navigation-tools
StackExchange/blackbox
2021-02-04 14:16:29 +01:00
EOBUNDLES
2021-02-03 22:29:58 +01:00
# Load the theme.
2021-02-04 14:16:29 +01:00
antigen theme romkatv/powerlevel10k
# I'm done- let's go
2021-02-03 22:29:58 +01:00
antigen apply
2021-02-04 14:16:29 +01:00
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh