/ .zshrc
.zshrc
1 # source profile 2 set -a 3 source $HOME/.profile 4 source $HOME/.tune/.env 5 set +a 6 eval "$(direnv hook zsh)" 7 eval "$(~/.local/bin/mise activate zsh)" 8 9 # Set a colorful prompt 10 PROMPT='%F{green}$%f ' 11 12 [[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)" 13 14 # source fzf 15 [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh 16 [ -f ~/.forgit/forgit.plugin.zsh ] && source ~/.forgit/forgit.plugin.zsh 17 18 # session-wise fix 19 ulimit -n 4096 20 export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES 21 22 # history settings 23 export HISTFILE=~/.zsh_history 24 export HISTFILESIZE=1000000000 25 export HISTSIZE=1000000000 26 setopt INC_APPEND_HISTORY 27 export HISTTIMEFORMAT="[%F %T] " 28 setopt EXTENDED_HISTORY 29 setopt HIST_FIND_NO_DUPS 30 setopt HIST_IGNORE_ALL_DUPS 31 32 fzf-history-widget() { 33 local selected_history=$(fc -ln -200 | awk '!seen[$0]++' | fzf +s --tac +m) 34 if [[ -n $selected_history ]]; then 35 LBUFFER="${selected_history}" 36 fi 37 } 38 39 zle -N fzf-history-widget 40 bindkey '^R' fzf-history-widget 41 42 # JINA_CLI_END 43 44 # Added by LM Studio CLI (lms) 45 export PATH="$PATH:/Users/monotykamary/.cache/lm-studio/bin" 46 47 # Added by Windsurf 48 export PATH="/Users/monotykamary/.codeium/windsurf/bin:$PATH" 49 50 # opencode 51 export PATH=/Users/monotykamary/.opencode/bin:$PATH 52 53 # >>> conda initialize >>> 54 # !! Contents within this block are managed by 'conda init' !! 55 __conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" 56 if [ $? -eq 0 ]; then 57 eval "$__conda_setup" 58 else 59 if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then 60 . "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" 61 else 62 export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH" 63 fi 64 fi 65 unset __conda_setup 66 # <<< conda initialize <<< 67 68 # opperator 69 export PATH=/Users/monotykamary/.opperator/bin:$PATH 70 71 # Amp CLI 72 export PATH="/Users/monotykamary/.amp/bin:$PATH" 73 74 # Added by Antigravity 75 export PATH="/Users/monotykamary/.antigravity/antigravity/bin:$PATH" 76 77 # bun completions 78 [ -s "/Users/monotykamary/.bun/_bun" ] && source "/Users/monotykamary/.bun/_bun" 79 80 # >>> cowl shell >>> 81 cowl() { 82 if [ "$1" = "new" ]; then 83 shift 84 local path 85 path="$('/opt/homebrew/Cellar/bun/1.3.6/bin/bun' '/Users/monotykamary/.bun/bin/cowl' new "$@")" || return 86 pushd -- "$path" 87 else 88 '/opt/homebrew/Cellar/bun/1.3.6/bin/bun' '/Users/monotykamary/.bun/bin/cowl' "$@" 89 fi 90 } 91 # <<< cowl shell <<< 92 93 # Wasmer 94 export WASMER_DIR="/Users/monotykamary/.wasmer" 95 [ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh"