Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup macOS Sierra (10.12)
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Monaco',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
// `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
cursorShape: 'BLOCK',
// set to true for blinking cursor
cursorBlink: false,
// color of the text
foregroundColor: '#fff',
// terminal background color
backgroundColor: '#000',
// border color (window, tabs)
borderColor: 'rgba(255, 255, 255, 0.1)',
// custom css to embed in the main window
css: '',
// custom css to embed in the terminal window
termCSS: '',
// set to `true` (without backticks) if you're using a Linux setup that doesn't show native menus
// default: `false` on Linux, `true` on Windows (ignored on macOS)
showHamburgerMenu: '',
// set to `false` if you want to hide the minimize, maximize and close buttons
// additionally, set to `'left'` if you want them on the left, like in Ubuntu
// default: `true` on windows and Linux (ignored on macOS)
showWindowControls: '',
// custom padding (css format, i.e.: `top right bottom left`)
padding: '12px 14px',
// the full list. if you're going to provide the full color palette,
// including the 6 x 6 color cubes and the grayscale map, just provide
// an array here instead of a color map object
colors: {
black: '#000000',
red: '#ff0000',
green: '#33ff00',
yellow: '#ffff00',
blue: '#0066ff',
magenta: '#cc00ff',
cyan: '#00ffff',
white: '#d0d0d0',
lightBlack: '#808080',
lightRed: '#ff0000',
lightGreen: '#33ff00',
lightYellow: '#ffff00',
lightBlue: '#0066ff',
lightMagenta: '#cc00ff',
lightCyan: '#00ffff',
lightWhite: '#ffffff'
},
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
// if left empty, your system's login shell will be used by default
// make sure to use a full path if the binary name doesn't work
// (e.g `C:\\Windows\\System32\\bash.exe` instead of just `bash.exe`)
// if you're using powershell, make sure to remove the `--login` below
shell: '',
// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
// by default ['--login'] will be used
shellArgs: ['--login'],
// for environment variables
env: {},
// set to false for no bell
bell: 'SOUND',
// if true, selected text will automatically be copied to the clipboard
copyOnSelect: false
// if true, on right click selected text will be copied or pasted if no
// selection is present (true by default on Windows)
// quickEdit: true
// URL to custom bell
// bellSoundURL: 'http://example.com/bell.mp3',
// for advanced config flags please refer to https://hyper.is/#cfg
},
// a list of plugins to fetch and install from npm
// format: [@org/]project[#version]
// examples:
// `hyperpower`
// `@company/project`
// `project#1.0.1`
plugins: ['hyperlinks', 'hyper-hide-title', 'hyper-blink', 'hyper-search', 'hyperborder'],
// plugins: ['hyperlinks', 'hyper-hide-title', 'hyperborder', 'hyper-blink', 'hyper-search'],
// in development, you can create a directory under
// `~/.hyper_plugins/local/` and include it here
// to load it and avoid it being `npm install`ed
localPlugins: ["dracula"]
};

Setup macOS

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an AirPort Time Capsule that backs up everything using Time Machine, but I don't want all the crap I had in the old one. So let's get our hands dirty!

1. Update OS to latest version

Make sure everything is up to date.

Software Update

2. Install Xcode and its "Command Line Tools"

  1. Go to App Store and install Xcode.
  2. Open and accept the terms
  3. Then go to the terminal and install "Command Line Tools":
xcode-select --install

Notice this only works for Mac OS X Mavericks (10.9) and above. For earlier versions, continue to use the in-app download in Xcode.

3. Install Dotfiles

Visit my Dotfiles repo for instructions.

This will install some useful stuff like zsh shell and lots of plugins using oh-my-zsh. Besides that, it will also set a new theme and some useful aliases for the terminal.

4. Install Softwares

Many softwares can be installed through homebrew-cask which makes the process way simpler:

curl -L https://gist.githubusercontent.com/zenorocha/7159780/raw/5b7eb6d32800c974a2c8f0afc6cadfbf5078f239/softwares.sh | sh

What's included?

Browsers
Coding
Essential
For fun
Other
App Store

Unfortunately some apps aren't available through homebrew-cask, so you need to install it manually.

5. Generate SSH keys for GitHub

Visit GitHub's official guide for instructions.

From that point on you're going to be able to do some git operations with GitHub \o/

6. Set Chrome Canary as default browser

  1. Launch System Preferences
  2. General ➜ Default Web Browser
  3. Select “Chrome Canary” from the drop-down menu

7. Configure Sublime Text

Visit my Sublime Text preferences repo for instructions.

There you can find the whole list of plugins, preferences and snippets.

8. Install Alfred Workflows

Visit my Alfred workflow collection repo for instructions.

9. Set NPM user

npm adduser zenorocha

10. Profit!

:)

#!/bin/sh
# homebrew-cask
brew tap caskroom/cask
brew tap caskroom/versions
# browsers
brew cask install google-chrome
brew cask install google-chrome-canary
brew cask install firefox
brew cask install firefox-beta
brew cask install safari-technology-preview
# coding
brew cask install kaleidoscope
brew cask install iterm
brew cask install mou
brew cask install parallels-desktop
brew cask install paw
brew cask install sourcetree
brew cask install sublime-text
# essential
brew cask install 1password
brew cask install adobe-photoshop-cs6
brew cask install alfred
brew cask install dropbox
brew cask install evernote
brew cask install licecap
# for fun
brew cask install spotify
brew cask install vlc
brew cask install webtorrent
# other
brew cask install bartender
brew cask install istat-menus
brew cask install screenflow
brew cask install skype
brew cask install slack
brew cask install the-unarchiver
@diessica

This comment has been minimized.

diessica commented Nov 15, 2013

Zeno, just a little correction:
In "install softwares" section, I think apps.sh should be softwares.sh, right?

Great setup, btw. =)

@iamnewton

This comment has been minimized.

iamnewton commented Feb 4, 2014

Just so you know, you don't have to download xCode to use xcode-select --install. Unless you need the entire IDE, the cli tools including the gcc compiler come by just running that command.

@brunocoelho

This comment has been minimized.

brunocoelho commented Mar 20, 2014

Take a look at this:

Error: No available cask for firefox-aurora
Error: No available cask for google-chrome-canary
Error: No available cask for sublime-text-3
Error: No available cask for source-tree
Error: No available cask for u-torrent
@zenorocha

This comment has been minimized.

Owner

zenorocha commented Mar 20, 2014

@diessica, just fixed that URL.

@zsiddiqi

This comment has been minimized.

zsiddiqi commented Mar 25, 2014

I tried it yesterday and still getting errors on firefox-aurora, google-chrome-canary and u-torrent. Could you please fix them. Thanks

@facundofarias

This comment has been minimized.

facundofarias commented Apr 9, 2014

Some of them have changed the name, for example: sourcetree instead of source-tree.

@dhyegofernando

This comment has been minimized.

dhyegofernando commented May 10, 2014

Helped me a lot. Thanks guy.

@lucasmotta

This comment has been minimized.

lucasmotta commented Jun 3, 2014

@brunocoelho and @halisz try installing the homebrew-versions... this should enable firefox-aurora and chrome-canary

@zsiddiqi

This comment has been minimized.

zsiddiqi commented Jul 13, 2014

Thanks Lucas, the home-brew-version did the trick :) Cheers

@ajcubeta

This comment has been minimized.

ajcubeta commented Sep 12, 2014

cool dude !

@tucq88

This comment has been minimized.

tucq88 commented Oct 22, 2014

do you plan to make a version for 10.10. Some apps may changed.

@benjifisher

This comment has been minimized.

benjifisher commented Nov 6, 2014

According to the Cask docs you can use --appdir=/Applications to create symlinks in /Applications (default is to use ~/Applications). Isn't that easier than moving them as you recommend? (not tested by me)

@furzeface

This comment has been minimized.

furzeface commented Dec 5, 2014

Cheers @zenorocha, I've just sorted out my new Mac setup workflow and picked up a few tips here 😄, thanks @lucasmotta for the heads up on homebrew-versions too! 👍

@kishorevaishnav

This comment has been minimized.

kishorevaishnav commented Mar 7, 2015

@zenorocha, sublime-text-3 is not working instead sublime-text3 is working, i meant in the softwares.sh the line containing brew cask install sublime-text-3.

@pcanterini

This comment has been minimized.

pcanterini commented May 1, 2015

brew tap caskroom/versions
brew cask install sublime-text3

@segevofer

This comment has been minimized.

segevofer commented Aug 24, 2015

amazing work! thanks for the post :)

@Dorian

This comment has been minimized.

Dorian commented Sep 26, 2016

Some apps can be installed through brew cask:

  • Caffeine: brew cask install caffeine
  • CloudApp: brew cask install cloud
  • Dash: brew cask install dash
@z00m1n

This comment has been minimized.

z00m1n commented Dec 7, 2016

mou doesn't seem to support Sierra yet:

osx-1012:~ username$ brew cask install Caskroom/cask/mou
==> Satisfying dependencies
Error: Cask mou depends on macOS release <= 10.11, but you are running release 10.12.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment