Skip to content

Instantly share code, notes, and snippets.

@svenmuennich
Last active November 22, 2018 08:53
Show Gist options
  • Save svenmuennich/dd10396e33f3b0ad96b19d8377900631 to your computer and use it in GitHub Desktop.
Save svenmuennich/dd10396e33f3b0ad96b19d8377900631 to your computer and use it in GitHub Desktop.
A plan for setting up a new Mac for development
# Load NVM
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
# ls coloring etc.
alias ls='ls -Ga'
# Fix Perl locale
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Some shortcuts
alias fixopenwith='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"'
alias getpath='pwd | tr -d "\r\n" | pbcopy'
alias slime='open -a "Sublime Text"'
alias atom='open -a "Atom"'
alias tower='open -a "Tower" .'
# Shortcur for uploading all dYSM files in the current directory to Fabric/Crashlytics (replace <FABRIC_KEY> with your API Key)
alias uploadDSYMs='find . -name "*.dSYM" | xargs -I \{\} /Applications/Fabric.app/Contents/MacOS/upload-symbols -a <FABRIC_KEY> -p ios \{\}'
# Xdebug slows down execution, hence allow running PHP without loading it
alias fastPHP='php -dzend_extension=xdebug.so'

1. Install all available software updates

2. Install general software

  • Google Chrome
  • Mozilla Firefox
  • Flycut (clipboard manager, AppStore)
  • Magnet (window manager, AppStore)
  • 1Password (password manager, AppStore)
  • The Unarchiver (advanced unarchiving, AppStore)

Optional

  • Slack (AppStore)
  • Skype
  • Spotify
  • MacDown (markdown editor)
  • Google Drive
  • Dropbox
  • VLC
  • gfxCardStatus (graphics card info menulet)
  • GIF Brewery (AppStore)

QuickLook Plugins

Just copy them to ~/Library/QuickLook

3. Install dev software

Optional

  • Atom
  • CCMenu (build status menulet, AppStore)
  • Lisanet PDFWriter (pdf pseudo printer)
{
"gutter_theme": "Default",
"lint_mode": "load_save",
"styles": [
{
"mark_style": "outline",
"priority": 1,
"scope": "markup.warning",
"icon": "triangle",
"types": [
"warning"
]
},
{
"mark_style": "outline",
"priority": 1,
"scope": "markup.error",
"icon": "diamond",
"types": [
"error"
]
}
]
}
<!-- ... -->
<key>settings</key>
<array>
<!-- ... -->
<dict>
<key>name</key>
<string>SublimeLinter warning</string>
<key>scope</key>
<string>markup.warning</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#282828</string>
<key>foreground</key>
<string>#EDCE09</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>SublimeLinter error</string>
<key>scope</key>
<string>markup.error</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#282828</string>
<key>foreground</key>
<string>#E03206</string>
</dict>
</dict>
</array>
<!-- ... -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment