-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
100 lines (86 loc) · 2.74 KB
/
Copy pathsetup.sh
File metadata and controls
100 lines (86 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash
cmds=(
"/bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"; eval \"\$(/opt/homebrew/bin/brew shellenv)\""
"curl -sSL https://git.io/g-install | sh -s"
"sh -c \"\$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"; rm ~/.zshrc ~/.zprofile; ln -s $(pwd)/.config/zprofile ~/.zprofile; ln -s $(pwd)/.config/zshrc ~/.zshrc"
)
configs=(
"ApplePressAndHoldEnabled -bool false"
"InitialKeyRepeat -int 12"
"KeyRepeat -int 2"
"AppleShowAllExtensions -bool true"
"NSTableViewDefaultSizeMode -int 1"
"AppleShowAllFiles -bool true"
"show-recents -bool false"
"static-only -bool true"
"com.apple.spaces spans-displays -bool true"
"com.apple.dock expose-group-apps -bool true"
)
base=(
"nikitabobko/tap/aerospace --cask; defaults write -g NSWindowShouldDragOnGesture -bool true; mkdir ~/.config; rm -rf ~/.config/aerospace; ln -s $(pwd)/.config/aerospace ~/.config/aerospace"
"font-fira-code-nerd-font --cask"
"font-sf-pro --cask"
"font-sf-compact --cask"
"font-sf-mono --cask"
"font-new-york --cask"
"font-inter --cask"
"git; rm ~/.gitconfig ~/.gitignore; ln -s $(pwd)/.config/gitconfig ~/.gitconfig; ln -s $(pwd)/.config/gitignore ~/.gitignore"
"docker --cask"
"alacritty; mkdir ~/.config; rm -rf ~/.config/alacritty; ln -s $(pwd)/.config/alacritty ~/.config/alacritty"
"jandedobbeleer/oh-my-posh/oh-my-posh; mkdir ~/.config; rm -rf ~/.config/oh-my-posh; ln -s $(pwd)/.config/oh-my-posh ~/.config/oh-my-posh"
)
app=(
"little-snitch@5 --cask"
"spotify --cask"
"adobe-creative-cloud --cask"
"figma --cask"
"google-chrome --cask"
"whatsapp --cask"
"notion --cask"
"notion-calendar --cask"
"vlc --cask"
"cloudflare-warp --cask"
"nordvpn --cask"
)
code=(
"nvim; mkdir ~/.config; rm -rf ~/.config/nvim; ln -s $(pwd)/.config/nvim ~/.config/nvim"
nvm
"supabase/tap/supabase"
)
for config in ${configs[@]}; do
eval "defaults write -g ${config}"
done
sudo killall Finder
sudo killall Docker
echo "Executing some cmd for user: ${USER}"
echo
for cmd in ${cmds[@]}; do
echo "Do you wish to execute \"$cmd\"?"
select yn in "Yes" "No"; do
case $yn in
Yes ) eval $cmd; break;;
No ) echo "Skipped..."; break;;
esac
done
echo
done
apps=( "${base[@]}" "${app[@]}" "${code[@]}" )
echo "Brewing apps for user: ${USER}"
echo
for app in ${apps[@]}; do
cmd="brew install ${app}"
echo "Do you wish to execute \"${cmd}\"?"
select is in "Install" "Skip"; do
case $is in
Install ) eval $cmd; break;;
Skip ) echo "Skipped..."; break;;
esac
done
echo
done
echo "Brewed some apps."
echo
echo "Well done 👍🏻"
echo
echo "* Log out to activate keyboard config"
sudo launchctl bootout gui/$(id -u $USER)