Skip to content

Instantly share code, notes, and snippets.

@isaobushi
Last active February 9, 2024 09:46
Show Gist options
  • Save isaobushi/e6104267c47a15df2bde91494b2acffb to your computer and use it in GitHub Desktop.
Save isaobushi/e6104267c47a15df2bde91494b2acffb to your computer and use it in GitHub Desktop.
Setting up a new machine

Installation

Here there are some scripts to install automatically all my applications and settings on a fresh OSX machine

  • Note 1: not all the applications have a cask install, therefore they must be installed automatically
  • Note 2: it's better to install Xcode first from the app store before running the bootstrap script. Otherwise, Homebrew can't access the Xcode libraries as the agreement hasn't been accepted yet.

  1. Run
echo "Installing xcode"
xcode-select --install
  1. Run
echo "Starting bootstrapping"

echo "Create dev folder"
cd /Users/andreamele
mkdir -v dev
echo ""
if test ! $(which brew); then
    echo "Installing homebrew..."
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
echo ""
brew update
echo ""
echo "Cleaning up..."
brew cleanup
echo ""
echo "Installing cask..."
echo ""
brew install caskroom/cask/brew-cask
brew tap homebrew/cask-fonts


CASKS=(
    firefox
    iterm2
    slack
    daisydisk
    spectacle
    lepton
    istat-menus
    hyperswitch
    1password
    discord
    visual-studio-code
    font-hack-nerd-font
    runjs
    spotify
    gitkraken
    postman
)
echo "Installing cask apps..."
brew cask install ${CASKS[@]}

VSCODE_EXTENTIONS=(
)

echo "Configuring oh my zsh"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "Cloning powerLevel9K into oh-my-zsh/custom/themes/powerlevel9k"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

echo "Configuring OSX..."
echo ""
echo "Showing all filename extensions in Finder by default"
defaults write NSGlobalDomain AppleShowAllExtensions -bool true

echo ""
echo "Allowing text selection in Quick Look/Preview in Finder by default"
defaults write com.apple.finder QLEnableTextSelection -bool true

echo ""
echo "Disabling the warning when changing a file extension"
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

echo "Bootstrapping complete"

List of application to be installed manually

  • Yoink
  • Magnet
  • Logi Options
  • Alfred
  • Node Verrsion Control
  • Vue

TODO 🙄:

  1. Add instructions to set iterm2 and its fonts
  2. Add usufull links to finish the settings
  3. Add a list of scripts to set aliases
  4. Save vscode settings and extentions
  5. set up ssh keys

Setting Applications

iTerm2:

  • Profile: General /Users/andreamele/dev
    • Badge: 👾
    • Working Directory, Directory: /Users/andreamele/dev Colors
    • Foreground Color: rgbhex 839496
    • Background Color: rgbhex 002b36
    • Bold Color: rgbhex 93a1a1
    • Link Color: rgbhex b37208
    • Cursor Guide: rgbhex 58b9d9 ( High opacity )
    • Link Color: rgbhex b37208
    • Download: maerial font colors then import in color presets Font
    • Meslo LG M Regular Nerd Font Mono download font Keys
    • Preset: Natural Text Editing

oh-my-zsh them:

  • Set in .zshrc: ZSH_THEME="powerlevel9k/powerlevel9k"
  • Set in .zshrc: POWERLEVEL9K_MODE='nerdfont-complete'

Vs Code

  • [ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment