dotfiles/aurion/zsh.zshrc
2025-11-25 20:29:30 +05:30

163 lines
6.1 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.
├── aurion
│ ├── config.ghostty
│ └── zsh.zshrc
├── darkstar
│ └── bash.bashrc
├── LICENSE
└── README.md
zed .
cat ~/.zshrc
# === NVM ===
# Lazy-load NVM
export NVM_DIR="$HOME/.nvm"
nvm() {
unset -f nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm "$@"
}
node() {
unset -f node npm npx
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
node "$@"
}
npm() {
unset -f node npm npx
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
npm "$@"
}
npx() {
unset -f node npm npx
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
npx "$@"
}
# =============================================================================
# POWERLEVEL10K INSTANT PROMPT (must be near top)
# =============================================================================
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
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
# =============================================================================
# OH MY ZSH CORE
# =============================================================================
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git you-should-use)
source $ZSH/oh-my-zsh.sh
# =============================================================================
# HISTORY
# =============================================================================
HISTFILE=$HOME/.zhistory
SAVEHIST=1000
HISTSIZE=999
setopt share_history hist_expire_dups_first hist_ignore_dups hist_verify
# =============================================================================
# JAVA / OPENJDK
# =============================================================================
export JAVA_HOME="/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"
# =============================================================================
# SHELL INTEGRATIONS & CLI TOOLS
# =============================================================================
eval "$(zoxide init zsh)"
eval "$(fzf --zsh)"
eval "$(thefuck --alias)"
eval "$(thefuck --alias fk)"
# =============================================================================
# THEMES & PLUGINS
# =============================================================================
source /opt/homebrew/share/powerlevel10k/powerlevel10k.zsh-theme
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# =============================================================================
# ALIASES
# =============================================================================
alias ls="eza --color=always -long --git --no-filesize --icons=always --no-time --no-user --no-permissions"
alias sqlplus='DYLD_LIBRARY_PATH=/opt/homebrew/Cellar/instantclient-arm64-basic/23.3.0.23.09-1 sqlplus'
# =============================================================================
# PATH EXPORTS
# =============================================================================
export PATH="/opt/homebrew/Cellar/instantclient-arm64-sqlplus/23.3.0.23.09/bin:$PATH"
export PATH="$PATH:/Users/mav/.spicetify"
export PATH="$PATH:/Users/mav/.cache/lm-studio/bin"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/bin:$PATH"
# =============================================================================
# BUN
# =============================================================================
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
[ -s "/Users/mav/.bun/_bun" ] && source "/Users/mav/.bun/_bun"
# =============================================================================
# DENO
# =============================================================================
[ -f "$HOME/.deno/env" ] && . "$HOME/.deno/env"
# =============================================================================
# ATUIN (shell history)
# =============================================================================
[ -f "$HOME/.atuin/bin/env" ] && . "$HOME/.atuin/bin/env"
eval "$(atuin init zsh)"
# =============================================================================
# CONDA
# =============================================================================
__conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
fi
fi
unset __conda_setup
# =============================================================================
# ORACLE INSTANT CLIENT
# =============================================================================
export DYLD_LIBRARY_PATH="/opt/homebrew/Cellar/instantclient-arm64-basic/23.3.0.23.09-1:$DYLD_LIBRARY_PATH"
# =============================================================================
# KIRO SHELL (if available)
# =============================================================================
[[ "$TERM_PROGRAM" == "kiro" ]] && . "$(kiro --locate-shell-integration-path zsh)"
# =============================================================================
# LOCAL ENVIRONMENT
# =============================================================================
[ -f "$HOME/.local/bin/env" ] && . "$HOME/.local/bin/env"
# =============================================================================
# API KEYS
# =============================================================================
## Z.ai
export ZAI_API_KEY=
## OpenAI
export OPENAI_API_KEY=
# Added by Antigravity
export PATH="/Users/mav/.antigravity/antigravity/bin:$PATH"