Skip to content

Commit 26aa54b

Browse files
committed
incremental updates
1 parent aa2f357 commit 26aa54b

File tree

3 files changed

+39
-6
lines changed

3 files changed

+39
-6
lines changed

bootstrap_shell.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ function configureDotfiles() {
199199
link_dotfile "$dotfile"
200200
done
201201

202-
link_dotfile "bat-config" "/Users/samm/.config/bat/config"
203-
link_dotfile "rsyncd.conf" "/Users/samm/.rsyncd.conf"
202+
link_dotfile "bat-config" "$HOME/.config/bat/config"
203+
link_dotfile "rsyncd.conf" "$HOME/.rsyncd.conf"
204+
link_dotfile "zshrc" "$HOME/.zshrc"
205+
link_dotfile "zprofile" "$HOME/.zprofile"
204206
}
205207

206208
function configureAmazonQ(){

zprofile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ####### PROFILING #######
2+
# # Uncomment below to enable debug timing
3+
# zmodload zsh/zprof
4+
# # Remember to uncomment zprof at the end of the file!
5+
# #### END PROFILING ######
6+
7+
if [[ "$LOADING_Q" == "true" ]]; then
8+
# Kiro CLI pre block. Keep at the top of this file.
9+
# This is in an if statement because Amazon Q / Kiro CLI is _really_ poorly written and slows down your terminal
10+
# See https://github.com/aws/amazon-q-developer-cli/discussions/202
11+
[[ -f "${HOME}/Library/Application Support/kiro-cli/shell/zprofile.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/kiro-cli/shell/zprofile.pre.zsh"
12+
fi
13+
14+
15+
# echo ".zprofile loaded now"
16+
if [[ "$LOADING_Q" == "true" ]]; then
17+
# Kiro CLI post block. Keep at the bottom of this file.
18+
# This is in an if statement because Amazon Q / Kiro CLI is _really_ poorly written and slows down your terminal
19+
# See https://github.com/aws/amazon-q-developer-cli/discussions/202
20+
[[ -f "${HOME}/Library/Application Support/kiro-cli/shell/zprofile.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/kiro-cli/shell/zprofile.post.zsh"
21+
fi
22+
23+
export PATH="$HOME/.local/bin:$PATH"
24+
25+
# Added by OrbStack: command-line tools and integration
26+
# This won't be added again if you remove it.
27+
source "$HOME/.orbstack/shell/init.zsh" 2>/dev/null || :

zshrc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Amazon Q pre block. Keep at the top of this file.
1+
22
### q slow debugging ###
33
# date
44
# echo "STARTING: amazon q pre block loading from .zshrc"
@@ -7,8 +7,10 @@
77
# ###
88
# only run if LOADING_Q is true
99
if [[ "$LOADING_Q" == "true" ]]; then
10-
# Amazon Q post block. Keep at the bottom of this file.
11-
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh"
10+
# Kiro CLI post block. Keep at the bottom of this file.
11+
# This is in an if statement because Amazon Q / Kiro CLI is _really_ poorly written and slows down your terminal
12+
# See https://github.com/aws/amazon-q-developer-cli/discussions/202
13+
[[ -f "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.pre.zsh"
1214
fi
1315
# ### q slow debugging ###
1416
# date
@@ -133,7 +135,9 @@ if [ -f '/Users/samm/Downloads/google-cloud-sdk/completion.zsh.inc' ] && if_not_
133135
# # Amazon Q post block. Keep at the bottom of this file.
134136
if [[ "$LOADING_Q" == "true" ]]; then
135137
# Amazon Q post block. Keep at the bottom of this file.
136-
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh"
138+
# This is in an if statement because Amazon Q / Kiro CLI is _really_ poorly written and slows down your terminal
139+
# See https://github.com/aws/amazon-q-developer-cli/discussions/202
140+
[[ -f "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/kiro-cli/shell/zshrc.post.zsh"
137141
fi
138142

139143
# ####### PROFILING #######

0 commit comments

Comments
 (0)