Original was in coffeescript, so I simply converted to JS to run in browser without dependencies.
- Open browser console
- Paste script above and hit enter
- Type
haiku()to generate name - Click
Arrow upand thenEnterto generate another one
Original was in coffeescript, so I simply converted to JS to run in browser without dependencies.
haiku() to generate nameArrow up and then Enter to generate another one| # ~/.gitconfig from @boblet | |
| # initially based on http://rails.wincent.com/wiki/Git_quickstart | |
| [core] | |
| excludesfile = /Users/oli/.gitignore | |
| legacyheaders = false # >git 1.5 | |
| quotepath = false | |
| # http://stackoverflow.com/questions/136178/git-diff-handling-long-lines | |
| pager = less -r | |
| # if ↑ doesn’t work, try: pager = less -+$LESS -FRX |
| function _git_branch_name | |
| echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
| end | |
| function _is_git_dirty | |
| echo (git status -s --ignore-submodules=dirty ^/dev/null) | |
| end | |
| function fish_prompt | |
| set_color yellow |