Skip to content

Commit 5b75810

Browse files
committed
2/5/2026
1 parent 46b8ca6 commit 5b75810

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

.gitconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@
3535
cob = checkout -b
3636
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
3737
la = "!git config -l | grep alias | cut -c 7-"
38+
[push]
39+
autoSetupRemote = true

dotpack/.30_git.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ if ! command -v git &> /dev/null; then
55
fi
66

77

8+
__git_addons() {
9+
# https://developer.1password.com/docs/ssh/get-started/#step-4-configure-your-ssh-or-git-client
10+
if [[ -e "${HOME}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" ]]; then
11+
export SSH_AUTH_SOCK="${HOME}/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
12+
fi
13+
}
14+
__git_addons
15+
16+
817
__git_funcs() {
918
# Short alias
1019
alias g="git"

dotpack/.30_vitess.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
##### https://vitess.io/
22
##### https://planetscale.com/
33

4+
__vitess_completions() {
5+
if command -v pscale &> /dev/null; then
6+
pscale() {
7+
unset -f "$0"
8+
# https://planetscale.com/docs/cli/completion
9+
source <(pscale completion "$(basename "${SHELL}")")
10+
$0 "$@"
11+
}
12+
fi
13+
}
14+
__vitess_completions
15+
16+
417
__vitess_lazy_install() {
518
# https://planetscale.com/docs/cli/planetscale-environment-setup#macos-instructions
619
if ! command -v pscale &> /dev/null && command -v brew &> /dev/null; then

packages.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
4343
echo "1password"
4444
echo "charmstone"
4545
#echo "discord"
46+
echo "disk-expert"
4647
echo "docker-desktop"
4748
echo "feedflow"
4849
echo "firefox"
@@ -87,8 +88,12 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
8788
# If there are no installed applications, it could be because a newer OS version needs a newer version of 'mas'
8889
mas list | grep -Eq '^[0-9]+ ' || brew upgrade mas
8990
fi
91+
mas upgrade
9092
mas_list=$(mas list)
9193
for app_id in $(
94+
# ----- Developer Tools -----
95+
# Xcode
96+
# echo "497799835"
9297
# ----- Applications -----
9398
# Kindle
9499
echo "302584613"
@@ -102,4 +107,12 @@ if [[ "${OSTYPE:-}" == "darwin"* ]]; then
102107
); do
103108
echo "${mas_list}" | grep -Eq "^${app_id} " || mas install "${app_id}"
104109
done
110+
111+
# Accept Xcode license
112+
if command -v xcodebuild &> /dev/null; then
113+
if ! sudo -n true &> /dev/null; then
114+
echo -e "\033[1;33mWARN:\033[0m you may be asked for your password to run 'xcodebuild -license'\n"
115+
fi
116+
sudo xcodebuild -license status || sudo xcodebuild -license accept
117+
fi
105118
fi

0 commit comments

Comments
 (0)