Created
December 16, 2022 12:54
-
-
Save batbrain9392/fae647583998522f0f787e84dcffb3f3 to your computer and use it in GitHub Desktop.
my zsh config - Oh My Zsh + Antigen + Powerlevel10k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# ANTIGEN | |
source $HOME/.oh-my-zsh/custom/plugins/antigen.zsh | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh | |
# Bundles from the default repo (robbyrussell's oh-my-zsh). | |
antigen bundle git | |
antigen bundle macos | |
antigen bundle brew | |
antigen bundle zsh-users/zsh-syntax-highlighting | |
antigen bundle zsh-users/zsh-autosuggestions | |
# Load the theme. | |
antigen theme romkatv/powerlevel10k | |
# Tell Antigen that you're done. | |
antigen apply | |
### MY PATHS | |
export PATH="/some/path:$PATH" | |
### MY TOKENS | |
export SOME_TOKEN=xxxxxxxxxxxxx | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment