Last active
September 8, 2026 17:41
-
-
Save mrnkr/a1d6677924d1fca4abb37ea1b67dee2d to your computer and use it in GitHub Desktop.
My .zshrc
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
| # 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 | |
| source ~/.fzf.zsh | |
| source ~/.alias.zsh | |
| # Enable startup timing with: ZSH_STARTUP_PROFILE=1 zsh -i -c exit | |
| zmodload zsh/datetime 2>/dev/null | |
| typeset -g __startup_t0="$EPOCHREALTIME" | |
| typeset -g __startup_t_start="$__startup_t0" | |
| __startup_timer_mark() { | |
| [[ -n "$ZSH_STARTUP_PROFILE" ]] || return | |
| local label="$1" | |
| local now="$EPOCHREALTIME" | |
| local elapsed_ms=$(( (now - __startup_t0) * 1000 )) | |
| printf 'zsh-init %-28s %8.3f ms\n' "$label" "$elapsed_ms" | |
| __startup_t0="$now" | |
| } | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="$HOME/.oh-my-zsh" | |
| export FZF_BASE=/opt/homebrew/bin/fzf | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
| ZSH_THEME="powerlevel10k/powerlevel10k" | |
| # Which plugins would you like to load? | |
| # Standard plugins can be found in $ZSH/plugins/ | |
| # Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| # Add wisely, as too many plugins slow down shell startup. | |
| plugins=(git zsh-syntax-highlighting fzf nvm ruby rbenv) | |
| # nvm plugin: autoload .nvmrc on cd | |
| zstyle ':omz:plugins:nvm' autoload yes | |
| zstyle ':omz:plugins:nvm' silent-autoload yes | |
| source $ZSH/oh-my-zsh.sh | |
| __startup_timer_mark "oh-my-zsh" | |
| export LC_ALL=en_US.UTF-8 | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh" | |
| [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" | |
| # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
| [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
| __startup_timer_mark "powerlevel10k" | |
| # pnpm | |
| export PNPM_HOME="$HOME/Library/pnpm" | |
| case ":$PATH:" in | |
| *":$PNPM_HOME:"*) ;; | |
| *) export PATH="$PNPM_HOME:$PATH" ;; | |
| esac | |
| # pnpm end | |
| [ -f "$HOME/.ghcup/env" ] && . "$HOME/.ghcup/env" # ghcup-env | |
| __startup_timer_mark "ghcup" | |
| # End of Docker CLI completions | |
| export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH" | |
| export PATH="/opt/homebrew/opt/python@3.14/libexec/bin:$PATH" | |
| export PATH=/opt/homebrew/share/google-cloud-sdk/bin:"$PATH" | |
| export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib -L/opt/homebrew/opt/libpq/lib" | |
| export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include -I/opt/homebrew/opt/libpq/include" | |
| export PKG_CONFIG_PATH="/opt/homebrew/opt/libpq/lib/pkgconfig" | |
| export PYENV_ROOT="$HOME/.pyenv" | |
| [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" | |
| export PATH="/opt/homebrew/opt/postgresql@15/bin:$PATH" | |
| if [[ -n "$ZSH_STARTUP_PROFILE" ]]; then | |
| typeset total_ms=$(( (EPOCHREALTIME - __startup_t_start) * 1000 )) | |
| printf 'zsh-init %-28s %8.3f ms\n' "total" "$total_ms" | |
| fi | |
| export PATH=$PATH:/Users/howdy/go/src/github.com/scriptdash/alto-workspace/bin/bin | |
| export PATH=$PATH:/Users/howdy/go/src/github.com/scriptdash/alto-workspace/bin | |
| bindkey -e && bindkey '[C' forward-word && bindkey '[D' backward-word | |
| # Created by `pipx` on 2026-07-09 13:41:14 | |
| export PATH="$PATH:/Users/howdy/.local/bin" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sourced
.alias.zsh-> https://gist.github.com/mrnkr/69067d217caa1afda798bea47d9d76ae