Last active
July 9, 2023 11:32
-
-
Save kioba/1c1b71326a79e0c4c5b063754ed552e8 to your computer and use it in GitHub Desktop.
zshrc config
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 | |
export ZSH=$HOME/.oh-my-zsh | |
# ZSH_THEME="powerlevel10k/powerlevel10k" | |
# Uncomment one of the following lines to change the auto-update behavior | |
# zstyle ':omz:update' mode disabled # disable automatic updates | |
zstyle ':omz:update' mode auto # update automatically without asking | |
# zstyle ':omz:update' mode reminder # just remind me to update when it's time | |
# Uncomment the following line to change how often to auto-update (in days). | |
zstyle ':omz:update' frequency 13 | |
plugins=( | |
git | |
zsh-autosuggestions | |
) | |
source $ZSH/oh-my-zsh.sh | |
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme | |
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH:_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# aliases | |
alias zshconfig="nvim ~/.zshrc" | |
alias ohmyzsh="nvim ~/.oh-my-zsh" | |
alias python=python3 | |
export JAVA_HOME=$(/usr/libexec/java_home) | |
# 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