File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed
Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 11# Amazon Q
2- if [[ -f " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.pre.zsh" ]]; then
3- builtin source " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.pre.zsh"
2+ if [[ -z " ${_AMAZON_Q_INITIALIZED_ZPROFILE_PRE} " ]]; then
3+ if [[ -f " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.pre.zsh" ]]; then
4+ builtin source " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.pre.zsh"
5+ fi
6+ export _AMAZON_Q_INITIALIZED_ZPROFILE_PRE=" 1"
47fi
58
69# shell-startup
710[[ ! -f " ${HOME} /.shell_startup" ]] || source " ${HOME} /.shell_startup"
811[[ ! -f " ${HOME} /.shell_vars" ]] || source " ${HOME} /.shell_vars"
912
1013# Amazon Q
11- if [[ -f " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.post.zsh" ]]; then
12- builtin source " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.post.zsh"
14+ if [[ -z " ${_AMAZON_Q_INITIALIZED_ZPROFILE_POST} " ]]; then
15+ if [[ -f " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.post.zsh" ]]; then
16+ builtin source " ${HOME} /Library/Application Support/amazon-q/shell/zprofile.post.zsh"
17+ fi
18+ export _AMAZON_Q_INITIALIZED_ZPROFILE_POST=" 1"
1319fi
1420# Fig Ignore
Original file line number Diff line number Diff line change 11# ########################################################################################################
22
3- # Amazon Q
4- if [[ -f " ${HOME} /Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]]; then
5- builtin source " ${HOME} /Library/Application Support/amazon-q/shell/zshrc.pre.zsh"
6- fi
7-
83# shell-startup
94[[ ! -f " ${HOME} /.shell_startup" ]] || source " ${HOME} /.shell_startup"
105
@@ -91,8 +86,4 @@ unsetopt autocd
9186
9287# ########################################################################################################
9388
94- # Amazon Q
95- if [[ -f " ${HOME} /Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]]; then
96- builtin source " ${HOME} /Library/Application Support/amazon-q/shell/zshrc.post.zsh"
97- fi
9889# Fig Ignore
You can’t perform that action at this time.
0 commit comments