Created
August 17, 2025 14:58
-
-
Save jofftiquez/fb1c098a86e7584e6d05e8c821ba4075 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Amazon Q pre block. Keep at the top of this file. | |
| [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" | |
| # Ascii Art on startup | |
| if (( COLUMNS > 100 )); then | |
| cat ~/.startup_art_large.txt | |
| else | |
| cat ~/.startup_art_small.txt | |
| fi | |
| # 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 | |
| eval "$(/opt/homebrew/bin/brew shellenv)" | |
| # Aliases | |
| alias nnn='nnn -Rd' | |
| alias vim='nvim' | |
| alias la='ls -la' | |
| alias gtcmt='git commit' | |
| alias gtco='git checkout' | |
| alias gtlg='git log' | |
| alias oc='oco' | |
| alias pwd='pwd | tee >(pbcopy)' | |
| # alias zed="open -a /Applications/Zed.app -n" | |
| alias zed="/Applications/Zed.app/Contents/MacOS/cli" | |
| # Set up the prompt | |
| autoload -Uz promptinit | |
| promptinit | |
| prompt adam1 | |
| # Use emacs keybindings even if our EDITOR is set to vi | |
| bindkey -e | |
| bindkey '^p' history-serach-backward | |
| bindkey '^n' history-serach-forward | |
| # Keep 1000 lines of history within the shell and save it to ~/.zsh_history: | |
| HISTSIZE=5000 | |
| SAVEHIST=$HISTSIZE | |
| HISTFILE=~/.zsh_history | |
| DISTDUP=erase | |
| setopt appendhistory | |
| setopt share_history | |
| setopt hist_ignore_space | |
| setopt hist_ignore_all_dups | |
| setopt hist_save_no_dups | |
| setopt hist_find_no_dups | |
| # Use modern completion system | |
| autoload -Uz compinit | |
| compinit | |
| zstyle ':completion:*' auto-description 'specify: %d' | |
| zstyle ':completion:*' completer _expand _complete _correct _approximate | |
| zstyle ':completion:*' format 'Completing %d' | |
| zstyle ':completion:*' group-name '' | |
| zstyle ':completion:*' menu select=2 | |
| # eval "$(dircolors -b)" | |
| zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
| zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s | |
| zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' | |
| zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" | |
| zstyle ':completion:*' menu no | |
| zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath' | |
| zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath' | |
| # zstyle ':completion:*' menu select=long | |
| zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s | |
| zstyle ':completion:*' use-compctl false | |
| zstyle ':completion:*' verbose true | |
| zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' | |
| zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' | |
| # Shell integrations | |
| eval "$(fzf --zsh)" | |
| eval "$(zoxide init --cmd cd zsh)" | |
| # NVM | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
| # Antigen | |
| source ~/.zsh/antigen.zsh | |
| # Antigen bundles | |
| antigen bundle git | |
| antigen bundle zsh-users/zsh-syntax-highlighting | |
| antigen bundle zsh-users/zsh-completions | |
| antigen bundle zsh-users/zsh-autosuggestions | |
| antigen bundle lukechilds/zsh-nvm | |
| antigen bundle Aloxaf/fzf-tab | |
| antigen apply | |
| # Switch Python Version | |
| source ~/.venv/bin/activate | |
| # Exports | |
| export GH_PERSONAL_ACCESS_TOKEN=XXXX | |
| export GH_PAT=XXXX | |
| export OPENAI_API_KEY=XXXX | |
| # Set custom LS_COLORS - mustard yellow for directories | |
| export LS_COLORS='di=38;5;178:ln=36:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43' | |
| # Re-define ls alias to use GNU ls with colors | |
| unalias ls 2>/dev/null | |
| alias ls='gls --color' | |
| source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme | |
| export GPG_TTY=$(tty) | |
| # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
| [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
| PATH=$(pyenv root)/shims:$PATH | |
| # pnpm | |
| export PNPM_HOME="/Users/centipede/Library/pnpm" | |
| case ":$PATH:" in | |
| *":$PNPM_HOME:"*) ;; | |
| *) export PATH="$PNPM_HOME:$PATH" ;; | |
| esac | |
| # pnpm end | |
| export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH" | |
| export PATH="$HOME/.moon/bin:$PATH" | |
| export PATH="/Applications/WebStorm.app/Contents/MacOS:$PATH" | |
| export GPG_TTY=$(tty) | |
| # Added by Windsurf | |
| export PATH="/Users/centipede/.codeium/windsurf/bin:$PATH" | |
| alias claude="/Users/centipede/.claude/local/claude" | |
| # Amazon Q post block. Keep at the bottom of this file. | |
| [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" | |
| # Android | |
| export ANDROID_HOME=~/Library/Android/sdk | |
| export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin | |
| export PATH=$PATH:$ANDROID_HOME/platform-tools | |
| export PATH=$PATH:$ANDROID_HOME/emulator | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment