Skip to content

Instantly share code, notes, and snippets.

View casr's full-sized avatar

Chris Rawnsley casr

View GitHub Profile
@casr
casr / .bash_profile
Last active March 1, 2018 15:00
Tab-completion and branch display for MacOS' default terminal
bind "set completion-ignore-case on"
source /Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash
source /Library/Developer/CommandLineTools/usr/share/git-core/git-prompt.sh
GIT_PS1_DESCRIBE_STYLE=branch
PS1="\w \$(__git_ps1 '🌴 %s')\n$ "
@casr
casr / a.sh
Last active October 5, 2017 10:36
# In a new terminal and follow these steps
# First let's get the version of Node and NPM we are working with:
npm -v
node -v
# Next create a minimal testing area
mkdir -p pixi-test
cd pixi-test
echo {} >package.json
@casr
casr / README.md
Last active March 31, 2017 12:53
Uglifyify bug
❯ npm install
❯ npm test

> @ test /Users/casr/Source/scratch/uglifyify-test
> for i in 0 1 2 3 4 5 6 7 8 9; do echo "require('react-dom')" | browserify - -g uglifyify | wc -c; done

  319901
  319901
  320050

319926