Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Last active October 3, 2017 06:52
Show Gist options
  • Save johnathan-sewell/6496df119642dc31f4e8 to your computer and use it in GitHub Desktop.
Save johnathan-sewell/6496df119642dc31f4e8 to your computer and use it in GitHub Desktop.
OSX Machine Setup

OSX Machine Setup

Sublime Text 3

Setup a command line alias to 'sublime'

alias sublime='"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"'

Packages

(Install package control from Sublime tools menu)

Theme

https://packagecontrol.io/packages/DA%20UI

Settings

	"font_face": "Consolas",
	"font_size": 12,
	"line_padding_bottom": 1,
	"line_padding_top": 1,
	"highlight_line": true

Git

Autocomplete git commands

if [ -f ~/.git-completion.bash ]; then
   source ~/.git-completion.bash
fi

Git Prompt

if [ -f ~/.git-prompt.sh ]; then
   source ~/.git-prompt.sh
   PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "'
   export GIT_PS1_SHOWCOLORHINTS=true
fi

You can add additional options too: https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh#L38

Git Aliases

I actually prefer to use git aliases rather than bash aliases because they don't break the git autocomplete. https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases

Insert into ~/.gitconfig

[alias]
        c = checkout
        s = status
        po = push origin

Node

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Install Browsers

  • Chrome
  • Firefox

Chrome Extensions

Beyond Compare

@larister
Copy link

alias disapprovingeyes='echo "ಠ_ಠ" | pbcopy'

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