feat: brew, volta, zsh, mac-defaults, iTerm

main
James Spencer 2023-10-01 21:04:37 +01:00
parent fbe3f1c029
commit b7fb219e44
Signed by: james
SSH Key Fingerprint: SHA256:7tOVvkg3eVqn4GbEInHoSkEG96Cvqgvwx+VHUD9begc
10 changed files with 427 additions and 1 deletions

View File

@ -3,3 +3,7 @@ After installation
- Set `gitconfig_work` to your work email address - Set `gitconfig_work` to your work email address
- Set up `.ssh/config` to use 1Password SSH Keys - Set up `.ssh/config` to use 1Password SSH Keys
- Provide `authToken` for work npm registry in `.npmrc` - Provide `authToken` for work npm registry in `.npmrc`
- Move everything in `.zshrc.pre-oh-my-zsh` to `.zshrc`
## Programs requiring manual installation
- Session

3
hushlogin Normal file
View File

@ -0,0 +1,3 @@
# The mere presence of this file in the home directory disables the system
# copyright notice, the date and time of the last login, the message of the
# day as well as other information that may otherwise appear on login.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# Save the current working directory # Save the current working directory
DIR=$(pwd) DIR=$(pwd)
@ -34,3 +34,12 @@ echo "Done linking dotfiles."
# Set up macOS defaults # Set up macOS defaults
./scripts/set-mac-defaults.sh ./scripts/set-mac-defaults.sh
# Install Homebrew, packages and applications
./scripts/install-homebrew.sh
# Install Oh My Zsh
./scripts/install-oh-my-zsh.sh
# Install Volta
./scripts/install-volta.sh

344
misc/spaceduck.itermcolors Normal file
View File

@ -0,0 +1,344 @@
<?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>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.20392157137393951</real>
<key>Red Component</key>
<real>0.89019608497619629</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.58823531866073608</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.80000001192092896</real>
<key>Red Component</key>
<real>0.36078432202339172</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.90196079015731812</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.63137257099151611</real>
<key>Red Component</key>
<real>0.70196080207824707</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.80000001192092896</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.63921570777893066</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.80784314870834351</real>
<key>Red Component</key>
<real>0.94901961088180542</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.80000001192092896</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.36078432202339172</real>
<key>Red Component</key>
<real>0.47843137383460999</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.80784314870834351</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.94509804248809814</real>
<key>Red Component</key>
<real>0.94117647409439087</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.58823531866073608</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.80000001192092896</real>
<key>Red Component</key>
<real>0.36078432202339172</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.90196079015731812</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.63137257099151611</real>
<key>Red Component</key>
<real>0.70196080207824707</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.80000001192092896</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.63921570777893066</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.80784314870834351</real>
<key>Red Component</key>
<real>0.94901961088180542</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.80000001192092896</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.36078432202339172</real>
<key>Red Component</key>
<real>0.47843137383460999</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.60392159223556519</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.43529412150382996</real>
<key>Red Component</key>
<real>0.40784314274787903</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.60392159223556519</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.43529412150382996</real>
<key>Red Component</key>
<real>0.40784314274787903</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.20392157137393951</real>
<key>Red Component</key>
<real>0.89019608497619629</real>
</dict>
<key>Background Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.10588235408067703</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.066666670143604279</real>
<key>Red Component</key>
<real>0.058823529630899429</real>
</dict>
<key>Badge Color</key>
<dict>
<key>Alpha Component</key>
<real>0.78534412384033203</real>
<key>Blue Component</key>
<real>0.56078433990478516</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.43529412150382996</real>
<key>Red Component</key>
<real>0.80784314870834351</real>
</dict>
<key>Bold Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.75686275959014893</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.94117647409439087</real>
<key>Red Component</key>
<real>0.92549020051956177</real>
</dict>
<key>Cursor Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.75686275959014893</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.94117647409439087</real>
<key>Red Component</key>
<real>0.92549020051956177</real>
</dict>
<key>Cursor Guide Color</key>
<dict>
<key>Alpha Component</key>
<real>0.25</real>
<key>Blue Component</key>
<real>1</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.9268307089805603</real>
<key>Red Component</key>
<real>0.70213186740875244</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.10588235408067703</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.066666670143604279</real>
<key>Red Component</key>
<real>0.058823529630899429</real>
</dict>
<key>Foreground Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.75686275959014893</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.94117647409439087</real>
<key>Red Component</key>
<real>0.92549020051956177</real>
</dict>
<key>Link Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.73423302173614502</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.35916060209274292</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Selected Text Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>1</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>1</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.60392159223556519</real>
<key>Color Space</key>
<string>sRGB</string>
<key>Green Component</key>
<real>0.43529412150382996</real>
<key>Red Component</key>
<real>0.40784314274787903</real>
</dict>
</dict>
</plist>

5
scripts/Brewfile Normal file
View File

@ -0,0 +1,5 @@
coreutils
git
tree
pure
zsh

13
scripts/Caskfile Normal file
View File

@ -0,0 +1,13 @@
1password
1password-cli
firefox-developer-edition
spotify
visual-studio-code
divvy
github
google-chrome
iterm2
licecap
obsidian
raycast
webex

37
scripts/install-homebrew.sh Executable file
View File

@ -0,0 +1,37 @@
#!/bin/sh
#
# Homebrew
# Check for Homebrew
if test ! $(which brew)
then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
brew update > /dev/null
echo "Installing Homebrew packages..."
echo
cat Brewfile | xargs brew install
echo
echo "Finished installing Homebrew packages"
echo "Setting up zsh as default shell..."
echo
chsh -s /opt/homebrew/bin/zsh
echo
echo "Finished setting up zsh as default shell"
echo "Installing Homebrew casks..."
echo
brew tap homebrew/cask-versions
cat Caskfile | xargs brew install --cask
echo
echo "Finished installing Homebrew casks"
# Set spaceduck theme for iTerm
open "../misc/spaceduck.itermcolors"
exit 0

4
scripts/install-oh-my-zsh.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

6
scripts/install-volta.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
echo "Installing Volta..."
echo
curl https://get.volta.sh | bash
echo
echo "Finished installing Volta!"

View File

@ -1,3 +1,4 @@
#!/bin/sh
echo "Setting macOS defaults..." echo "Setting macOS defaults..."
echo echo