File tree Expand file tree Collapse file tree 4 files changed +37
-0
lines changed
Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ if ! command -v git &> /dev/null; then
55fi
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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
105118fi
You can’t perform that action at this time.
0 commit comments