Last active
February 8, 2024 04:54
-
-
Save ariscript/463448f30c8ddee9adaa46ce13811aa1 to your computer and use it in GitHub Desktop.
Mac zsh 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 PATH=$HOME/bin:$HOME/.emacs.d/bin:$PATH:$HOME/Library/Python/3.9/bin:$HOME/.spicetify | |
launchctl setenv PATH $PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="powerlevel10k/powerlevel10k" | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
HYPHEN_INSENSITIVE="true" | |
zstyle ':omz:update' mode auto # update automatically without asking | |
# Use ISO 8601 timestamps in the history command output | |
HIST_STAMPS="yyyy-mm-dd" | |
plugins=( | |
aliases | |
battery | |
command-not-found | |
git | |
nvm | |
thefuck | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
) | |
zstyle ':omz:plugins:nvm' autoload yes # automatically load nvm on cd | |
zstyle ':omz:plugins:nvm' silent-autoload yes # silent autoload on startup | |
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" # load autocompletions from brew | |
source $ZSH/oh-my-zsh.sh | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
zstyle ':omz:plugins:nvm' silent-autoload no # don't autoload silently after starting | |
# User configuration | |
export SSH_AUTH_SOCK=/Users/aero/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh | |
[ -f "/Users/aero/.ghcup/env" ] && source "/Users/aero/.ghcup/env" # ghcup-env | |
source /Users/aero/.config/broot/launcher/bash/br |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment