-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathlogon.script.sh
More file actions
executable file
·59 lines (39 loc) · 1.65 KB
/
logon.script.sh
File metadata and controls
executable file
·59 lines (39 loc) · 1.65 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
#!/bin/bash
GITHUB_REPO="https://raw.githubusercontent.com/WeAllCode/laptop/main"
# ---------------------------------------------
# Add VS Code settings.json file to user settings
CODE_SETTINGS_LOCATION="/Users/Guest/Library/Application Support/Code/User/settings.json"
# Download settings.json
curl -fsSL "$GITHUB_REPO/settings.json" -o "$CODE_SETTINGS_LOCATION"
# ---------------------------------------------
# Install VS Code Extensions
code --install-extension ms-python.python
# Upgrade pip
python3 -m pip install --upgrade --force-reinstall pip
# Install python packages
python3 -m pip install --upgrade --force-reinstall weallcode_robot
pip3 install --upgrade --force-reinstall weallcode_robot
# ---------------------------------------------
# Update zsh prompt
ZSHRC_LOCATION="/Users/Guest/.zshrc"
curl -fsSL "$GITHUB_REPO/.zshrc" -o "$ZSHRC_LOCATION"
# ---------------------------------------------
# Open Survey
SURVEY_URL="https://wac.fyi/survey"
open "$SURVEY_URL"
# ---------------------------------------------
sleep 1
# Update Dock
# don't set background and update dock back to back, they seem to cause a race condition as they restart the dock/desktop
/usr/local/bin/dockutil --remove all \
--add /Applications/Google\ Chrome.app \
--add /Applications/Visual\ Studio\ Code.app \
--add /Applications/Unity/Unity.app
# ---------------------------------------------
sleep 1
# Set Background
BACKGROUND_URL="$GITHUB_REPO/weallcode-background.png"
BACKGROUND_LOCATION="/Users/Shared/weallcode-background.png"
curl -fsSL "$BACKGROUND_URL" -o "$BACKGROUND_LOCATION"
wallpaper set "$BACKGROUND_LOCATION"
# ---------------------------------------------