-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·106 lines (83 loc) · 3.24 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·106 lines (83 loc) · 3.24 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
100
101
102
103
104
105
106
CURRENT_DIR=$( dirname -- "$( readlink -f -- "$0"; )" );
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
# Download CSM Breeze (git shortcut and utils)
git clone git@github.com:scmbreeze/scm_breeze.git ~/.scm_breeze && ~/.scm_breeze/install.sh
# Install command line tools
brew install \
the_silver_searcher \
ripgrep \
eza fd bat \
jq fzf jnv\
starship \
zsh-syntax-highlighting \
zsh-autosuggestions \
zsh-completions \
pygitup \
libyaml \
docker colima
brew install --cask \
google-chrome \
visual-studio-code \
slack \
ghostty \
meetingbar \
monitorcontrol \
keycastr \
shottr \
xnapper \
jordanbaird-ice \
dash@6 \
rectangle
cp $CURRENT_DIR/zshrc.sh ~/.zshrc
cp $CURRENT_DIR/gitconfig ~/.gitconfig
cp $CURRENT_DIR/gemrc ~/.gemrc
cp $CURRENT_DIR/ssh_config ~/.ssh/config
curl https://mise.run | sh
eval "$($HOME/.local/bin/mise activate zsh)"
mise use -g python ruby node
# Change MacOs defautls
# Use `defaults read` to display main defaults settings.
# See `man defaults` for the command
# Change how fast the keyboard repeat keys
defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 10
defaults write com.apple.Accessibility KeyRepeatDelay "0.5"
defaults write com.apple.Accessibility KeyRepeatInterval "0.083333333"
# Trackpad "tap to click"
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
# Remove margins on Windows
defaults write com.apple.WindowManager EnableTiledWindowMargins -bool false
# Disable Desktop/Space rearrangement
defaults write com.apple.dock "mru-spaces" -bool false && killall Dock
# Activate settings without logout
/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u
VSCODE_SETTINGS_FILE="$HOME/Library/Application Support/Code/User/settings.json"
if [ ! -f "$VSCODE_SETTINGS_FILE" ]; then
# If the file does not exist, create it with empty JSON content
echo "{}" > "$VSCODE_SETTINGS_FILE"
fi
set_vs_code_settings() {
local command="$1"
jq "$command" "$VSCODE_SETTINGS_FILE" > "$VSCODE_SETTINGS_FILE.tmp" && mv "$VSCODE_SETTINGS_FILE.tmp" "$VSCODE_SETTINGS_FILE"
}
set_vs_code_settings '.["editor.renderWhitespace"] = "trailing"'
set_vs_code_settings '.["files.trimTrailingWhitespace"] = true'
set_vs_code_settings '.["git.blame.editorDecoration.enabled"] = true'
set_vs_code_settings '.["workbench.tree.indent"] = 18'
code --install-extension ms-vscode.sublime-keybindings
code --install-extension shardulm94.trailing-spaces
echo "##########################"
echo "## To download manually ##"
echo "##########################"
echo "https://apps.apple.com/jp/app/presentify-screen-annotation/id1507246666?l=en-US&mt=12"
echo "https://apps.apple.com/jp/app/skitch-snap-mark-up-share/id425955336?l=en-US&mt=12"
echo "https://apps.apple.com/jp/app/picture-in-picture/id6475380719?l=en-US&mt=12"
echo ""
echo ""
echo "##########################"
echo "## To change manually ##"
echo "##########################"
echo "Enable web inspector in Safari"