Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created May 15, 2016 21:29
Show Gist options
  • Save ELLIOTTCABLE/72f9ca43fd9726f422a46b75eb7b5aac to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/72f9ca43fd9726f422a46b75eb7b5aac to your computer and use it in GitHub Desktop.
mah chokidars!
# npm test
chokidar --throttle 3500 --initial -c 'clear; npm --silent run-script test' -- \
'./giraphe.es6.js' 'Tests/**/*.js'
# Flow
chokidar --throttle 3500 --initial -c 'clear; flow' -- \
'./giraphe.es6.js' 'Tests/**/*.js'
# git status
chokidar --initial -c \
'clear; git diff -M -C --find-copies-harder -l64 --stat --cached --color | sed -E "s/^(.*)\|/`echo -en '\''\e[32m'\''`\1`echo -en '\''\e[00m'\''`|/" && git diff -M -C --find-copies-harder -l64 --stat --color | sed -E "s/^(.*)\|/`echo -en '\''\e[31m'\''`\1`echo -en '\''\e[00m'\''`|/" && git ls-files --others --directory --no-empty-directory --exclude-standard | sed -E "s/^(.*)$/ `echo -en '\''\e[33m'\''`\1`echo -en '\''\e[00m'\''`/"' \
^'node_modules'
# git log
chokidar --initial .git/HEAD .git/refs -c \
'git log --graph --date-order --cherry-mark --left-right --color --abbrev=5 --pretty=solarized-parseable Current Current+ queueless queueless+ | head -n "$((LINES - 2))" | ruby -an -F"\u001F" -r "~/.source/format-glog" -e '\''puts format_glog($F).join'\'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment