Skip to content

Instantly share code, notes, and snippets.

@liminal
Last active September 7, 2018 12:46
Show Gist options
  • Save liminal/1baa452c55dd413e92bc03245770b068 to your computer and use it in GitHub Desktop.
Save liminal/1baa452c55dd413e92bc03245770b068 to your computer and use it in GitHub Desktop.
New Laptop Setup
COMPUTER_NAME=<shade of green>
# Setup hostname
# Type the following command to change the primary hostname of your Mac:
# This is your fully qualified hostname, for example myMac.domain.com
sudo scutil --set HostName $COMPUTER_NAME
#Type the following command to change the Bonjour hostname of your Mac:
#This is the name usable on the local network, for example myMac.local.
sudo scutil --set LocalHostName $COMPUTER_NAME
#Optional: If you also want to change the computer name, type the following command:
#This is the user-friendly computer name you see in Finder, for example myMac.
sudo scutil --set ComputerName $COMPUTER_NAME
#Flush the DNS cache by typing:
dscacheutil -flushcache
# Install a reasonable terminal
curl -L -o iterm.zip https://iterm2.com/downloads/stable/latest
# Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# SdkMan
curl -s "https://get.sdkman.io" | bash
mkdir -p ~/repos/github.com/liminal
git clone https://github.com/liminal/dotfiles ~/repos/github.com/liminal/dotfiles
cd ~/repos/github.com/liminal/dotfiles && ./install.sh
brew install wget
brew install coreutils
#Install lastpass
#Install 1password
# Deal with git gui /wish/tcl weirdness (see https://github.com/git/git-scm.com/issues/853#issuecomment-254768237 )
brew install tcl-tk
brew link tcl-tk --force
gln -s --backup=numbered $(which wish) "/usr/local/Cellar/git/$git_version/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment