1- # shellcheck disable=SC2148 disable=SC1090 shell=bash
1+ # Amazon Q pre block. Keep at the top of this file.
2+ # ## q slow debugging ###
3+ # date
4+ # echo "STARTING: amazon q pre block loading from .zshrc"
5+ # # set zsh to echo verbose
6+ # set -x
7+ # ###
8+ # [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh"
9+ # ### q slow debugging ###
10+ # date
11+ # # unset zsh to echo verbose
12+ # set +x
13+ # echo "DONE: amazon q pre block loaded from .zshrc"
14+ # ##
15+ # # AMAZON Q MAKES EVERYTHING SLOWWWWWW
216
17+ # shellcheck disable=SC2148 disable=SC1090 shell=bash
318# ~/.zshrc
419
520# set +x
621
7- set +m # Make jobs quiet by default
8-
22+ # only run set +m if we're interactive
23+ if [[ $- == * i* ]]; then
24+ set +m # Make jobs quiet by default
25+ fi
926# There is an alias to jump to the directory with the various
1027# included zsh configs, simply type `zshconfig` at the prompt.
1128
@@ -30,7 +47,7 @@ if [[ -d $HOME/Library/Mobile\ Documents/com\~apple\~CloudDocs/Dropbox\ Import/d
3047fi
3148
3249# # Add ssh keys to agent if not already added
33- ssh-add-keys
50+ # ssh-add-keys # TODO: disabled 2025-03-16 to see if it helps performance, reenable if ssh stops working
3451
3552# ## Below are items added by installer scripts (usually homebrew) ####
3653
@@ -40,12 +57,15 @@ source /opt/homebrew/Cellar/fzf/*/shell/key-bindings.zsh
4057# Enable direnv - https://direnv.net
4158# eval "$(direnv hook zsh)"
4259
43- test -e " ${HOME} /.iterm2_shell_integration.zsh" && source " ${HOME} /.iterm2_shell_integration.zsh"
60+ if_not_in_vscode bg_silent test -e " ${HOME} /.iterm2_shell_integration.zsh" && bg_silent source " ${HOME} /.iterm2_shell_integration.zsh"
4461
4562zstyle ' :completion:*' menu select
4663fpath+=~ /.zfunc
4764
48- set -m # reenable job output
65+ # only run set -m if we're interactive
66+ if [[ $- == * i* ]]; then
67+ set -m # reenable job output
68+ fi
4969
5070# >>> mamba initialize >>>
5171# !! Contents within this block are managed by 'mamba init' !!
@@ -88,14 +108,29 @@ export PATH="$PATH:/Users/samm/Fltr"
88108
89109# tabtab source for electron-forge package
90110# uninstall by removing these lines or running `tabtab uninstall electron-forge`
91- [[ -f /Users/samm/.npm/_npx/6913fdfd1ea7a741/node_modules/tabtab/.completions/electron-forge.zsh ]] && . /Users/samm/.npm/_npx/6913fdfd1ea7a741/node_modules/tabtab/.completions/electron-forge.zsh
92- autoload -Uz compinit
111+ # [[ -f /Users/samm/.npm/_npx/6913fdfd1ea7a741/node_modules/tabtab/.completions/electron-forge.zsh ]] && . /Users/samm/.npm/_npx/6913fdfd1ea7a741/node_modules/tabtab/.completions/electron-forge.zsh
93112
94113# Added by LM Studio CLI tool (lms)
95114export PATH=" $PATH :/Users/samm/.cache/lm-studio/bin"
115+ if [ -f " /Users/samm/.config/fabric/fabric-bootstrap.inc" ] && if_not_in_vscode; then . " /Users/samm/.config/fabric/fabric-bootstrap.inc" ; fi
96116
97- # ###### PROFILING #######
98- # Uncomment below to enable debug timing
117+ fpath+=~ /.zfunc
118+
119+ export PATH=" /opt/homebrew/opt/tcl-tk@8/bin:$PATH "
120+
121+ # Amazon Q post block. Keep at the bottom of this file.
122+ # # The next line updates PATH for the Google Cloud SDK.
123+ if [ -f ' /Users/samm/Downloads/google-cloud-sdk/path.zsh.inc' ]; then . ' /Users/samm/Downloads/google-cloud-sdk/path.zsh.inc' ; fi
124+
125+ # The next line enables shell command completion for gcloud.
126+ if [ -f ' /Users/samm/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . ' /Users/samm/Downloads/google-cloud-sdk/completion.zsh.inc' ; fi
127+
128+ # # Amazon Q post block. Keep at the bottom of this file.
129+ # [[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh"
130+
131+ # ####### PROFILING #######
132+ # # Uncomment below to enable debug timing
99133# zprof
100- # ### END PROFILING ######
101- if [ -f " /Users/samm/.config/fabric/fabric-bootstrap.inc" ]; then . " /Users/samm/.config/fabric/fabric-bootstrap.inc" ; fi
134+ # #### END PROFILING ######
135+
136+ # echo ".zshrc loaded now"
0 commit comments