Skip to content

Commit 7182226

Browse files
committed
🚀 starship zsh speedup
1 parent 0d50b20 commit 7182226

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

shell/.zprofile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
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"
47
fi
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"
1319
fi
1420
# Fig Ignore

shell/.zshrc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
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

0 commit comments

Comments
 (0)