-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
66 lines (51 loc) · 1.92 KB
/
Copy pathsetup.sh
File metadata and controls
66 lines (51 loc) · 1.92 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
#!/usr/bin/env bash
#### Install Brew
+/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
#### Brew packages
brew bundle
#### oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "source $PWD/.zshrc.base" > ~/.zshrc
#### Symlinks
ln -sf .fdignore ~/.fdignore
ln -sf $PWD/.gemrc ~/.gemrc
ln -sf $PWD/.hushlogin ~/.hushlogin
ln -sf $PWD/.irbrc ~/.irbrc
ln -sf $PWD/.tmux.conf ~/.tmux.conf
ln -sf $PWD/config/nvim ~/.config/nvim
ln -sf $PWD/config/ghostty ~/.config/ghostty
ln -sf $PWD/.gitconfig ~/.gitconfig
#### Home setup
mkdir -p ~/.secrets/rails_credentials
mkdir -p ~/.vimwiki
mkdir -p ~/.ssh
#### nvm
#mkdir -p ~/.nvm
#curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
#### tpm (tmux plugin manager) - in tmux, prefix + I to install
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
#### Rubbish macOS stuff
sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO
defaults write -g NSAutoFillHeuristicsControllerEnabled -bool false
#### Disable headless chrome
mkdir -p ~/Library/LaunchAgents ;
cat > ~/Library/LaunchAgents/local.setenv.chromeheadless.plist <<'PLIST'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key> <string>local.setenv.chromeheadless</string>
<key>ProgramArguments</key>
<array>
<string>/bin/launchctl</string>
<string>setenv</string>
<string>CHROME_HEADLESS</string>
<string>1</string>
</array>
<key>RunAtLoad</key> <true/>
<!-- KeepAlive not needed; this is a one-shot -->
<key>StandardOutPath</key> <string>/tmp/local.setenv.chromeheadless.out</string>
<key>StandardErrorPath</key> <string>/tmp/local.setenv.chromeheadless.err</string>
</dict>
</plist>
PLIST