├── .gitignore ├── irbrc ├── fonts └── SourceCodePro │ ├── SourceCodePro-Black.ttf │ ├── SourceCodePro-Bold.ttf │ ├── SourceCodePro-Light.ttf │ ├── SourceCodePro-Medium.ttf │ ├── SourceCodePro-Regular.ttf │ ├── SourceCodePro-Semibold.ttf │ ├── SourceCodePro-ExtraLight.ttf │ └── LICENSE.txt ├── sublime-settings └── bash_profile /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /irbrc: -------------------------------------------------------------------------------- 1 | IRB.conf[:PROMPT_MODE] = :SIMPLE 2 | -------------------------------------------------------------------------------- /fonts/SourceCodePro/SourceCodePro-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hughevans/dotfiles/master/fonts/SourceCodePro/SourceCodePro-Black.ttf -------------------------------------------------------------------------------- /fonts/SourceCodePro/SourceCodePro-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hughevans/dotfiles/master/fonts/SourceCodePro/SourceCodePro-Bold.ttf -------------------------------------------------------------------------------- /fonts/SourceCodePro/SourceCodePro-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hughevans/dotfiles/master/fonts/SourceCodePro/SourceCodePro-Light.ttf -------------------------------------------------------------------------------- /fonts/SourceCodePro/SourceCodePro-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hughevans/dotfiles/master/fonts/SourceCodePro/SourceCodePro-Medium.ttf -------------------------------------------------------------------------------- /fonts/SourceCodePro/SourceCodePro-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hughevans/dotfiles/master/fonts/SourceCodePro/SourceCodePro-Regular.ttf -------------------------------------------------------------------------------- /fonts/SourceCodePro/SourceCodePro-Semibold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hughevans/dotfiles/master/fonts/SourceCodePro/SourceCodePro-Semibold.ttf -------------------------------------------------------------------------------- /fonts/SourceCodePro/SourceCodePro-ExtraLight.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hughevans/dotfiles/master/fonts/SourceCodePro/SourceCodePro-ExtraLight.ttf -------------------------------------------------------------------------------- /sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "color_scheme": "Packages/User/RailsCastsColorScheme (SL).tmTheme", 3 | "dictionary": "Packages/Language - English/en_GB.dic", 4 | "draw_white_space": "selection", 5 | "ensure_newline_at_eof_on_save": true, 6 | "font_face": "SourceCodePro-Regular", 7 | "font_size": 13.0, 8 | "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", 9 | "gutter_theme_excludes": 10 | [ 11 | ], 12 | "paths": 13 | { 14 | "linux": 15 | [ 16 | ], 17 | "osx": 18 | [ 19 | "/opt/boxen/nodenv/shims" 20 | ] 21 | }, 22 | "rulers": 23 | [ 24 | 80 25 | ], 26 | "spell_check": true, 27 | "tab_size": 2, 28 | "theme": "Soda Light 3.sublime-theme", 29 | "translate_tabs_to_spaces": true 30 | } 31 | -------------------------------------------------------------------------------- /bash_profile: -------------------------------------------------------------------------------- 1 | export EDITOR="subl" 2 | export GIT_EDITOR="vim" 3 | 4 | HISTFILESIZE=2000 5 | 6 | source /opt/boxen/env.sh 7 | 8 | # FIXME 9 | source /opt/boxen/homebrew/Cellar/git/1.8.4-boxen2/etc/bash_completion.d/git-completion.bash 10 | source /opt/boxen/homebrew/Cellar/git/1.8.4-boxen2/etc/bash_completion.d/git-prompt.sh 11 | 12 | PS1='$(date +%H:%M) \w$(__git_ps1 " (%s)")\$ ' 13 | 14 | # General 15 | alias dds="find . -name '*.DS_Store' -type f -delete" 16 | alias fdns='sudo dscacheutil -flushcache' 17 | alias ls='ls -lahF' 18 | alias o='open' 19 | alias rb='source ~/.bash_profile' 20 | alias s='subl' 21 | alias sd='subl .' 22 | alias sdf='subl ~/src/dotfiles' 23 | alias ssc='subl ~/.ssh/config' 24 | alias st='open http://0.0.0.0:8000 && python -m SimpleHTTPServer' 25 | alias tre='tree -a -I .git' 26 | 27 | # Gem Bundler 28 | alias be='bundle exec' 29 | alias bi='bundle install --without production' 30 | 31 | # Git 32 | alias gci='git commit' 33 | alias gco='git checkout' 34 | alias gd='git diff | subl' 35 | alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" 36 | alias gpl='git pull' 37 | alias gps='git push' 38 | alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" 39 | alias gs='git status -sb' 40 | 41 | # Rails 42 | alias dbm0='rake db:migrate VERSION=0' 43 | alias dbm='rake db:migrate db:test:clone' 44 | alias sc='if [ -f script/console ]; then script/console; else rails console; fi' 45 | alias ss='./script/server' 46 | alias tl='tail -f log/development.log' 47 | alias ttl='tail -f log/test.log' 48 | 49 | # https://gist.github.com/aliang/1024466 50 | _complete_ssh_hosts () 51 | { 52 | COMPREPLY=() 53 | cur="${COMP_WORDS[COMP_CWORD]}" 54 | comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ 55 | cut -f 1 -d ' ' | \ 56 | sed -e s/,.*//g | \ 57 | grep -v ^# | \ 58 | uniq | \ 59 | grep -v "\[" ; 60 | cat ~/.ssh/config | \ 61 | grep "^Host " | \ 62 | awk '{print $2}' 63 | ` 64 | COMPREPLY=( $(compgen -W "${comp_ssh_hosts}" -- $cur)) 65 | return 0 66 | } 67 | 68 | complete -F _complete_ssh_hosts ssh 69 | 70 | # https://gist.github.com/turadg/840663 71 | function _rake_cache_path() { 72 | # If in a Rails app, put the cache in the cache dir 73 | # so version control ignores it 74 | if [ -e 'tmp/cache' ]; then 75 | prefix='tmp/cache/' 76 | fi 77 | echo "${prefix}.rake_t_cache" 78 | } 79 | 80 | function rake_cache_store() { 81 | rake --tasks --silent > "$(_rake_cache_path)" 82 | } 83 | 84 | function rake_cache_clear() { 85 | rm -f .rake_t_cache 86 | rm -f tmp/cache/.rake_t_cache 87 | } 88 | 89 | export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/} 90 | 91 | function _rakecomplete() { 92 | # error if no Rakefile 93 | if [ ! -e Rakefile ]; then 94 | echo "missing Rakefile" 95 | return 1 96 | fi 97 | 98 | # build cache if missing 99 | if [ ! -e "$(_rake_cache_path)" ]; then 100 | rake_cache_store 101 | fi 102 | 103 | local tasks=`awk '{print $2}' "$(_rake_cache_path)"` 104 | COMPREPLY=($(compgen -W "${tasks}" -- ${COMP_WORDS[COMP_CWORD]})) 105 | return 0 106 | } 107 | 108 | complete -o default -o nospace -F _rakecomplete rake 109 | -------------------------------------------------------------------------------- /fonts/SourceCodePro/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. 2 | 3 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 4 | 5 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 6 | 7 | 8 | ----------------------------------------------------------- 9 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 10 | ----------------------------------------------------------- 11 | 12 | PREAMBLE 13 | The goals of the Open Font License (OFL) are to stimulate worldwide 14 | development of collaborative font projects, to support the font creation 15 | efforts of academic and linguistic communities, and to provide a free and 16 | open framework in which fonts may be shared and improved in partnership 17 | with others. 18 | 19 | The OFL allows the licensed fonts to be used, studied, modified and 20 | redistributed freely as long as they are not sold by themselves. The 21 | fonts, including any derivative works, can be bundled, embedded, 22 | redistributed and/or sold with any software provided that any reserved 23 | names are not used by derivative works. The fonts and derivatives, 24 | however, cannot be released under any other type of license. The 25 | requirement for fonts to remain under this license does not apply 26 | to any document created using the fonts or their derivatives. 27 | 28 | DEFINITIONS 29 | "Font Software" refers to the set of files released by the Copyright 30 | Holder(s) under this license and clearly marked as such. This may 31 | include source files, build scripts and documentation. 32 | 33 | "Reserved Font Name" refers to any names specified as such after the 34 | copyright statement(s). 35 | 36 | "Original Version" refers to the collection of Font Software components as 37 | distributed by the Copyright Holder(s). 38 | 39 | "Modified Version" refers to any derivative made by adding to, deleting, 40 | or substituting -- in part or in whole -- any of the components of the 41 | Original Version, by changing formats or by porting the Font Software to a 42 | new environment. 43 | 44 | "Author" refers to any designer, engineer, programmer, technical 45 | writer or other person who contributed to the Font Software. 46 | 47 | PERMISSION & CONDITIONS 48 | Permission is hereby granted, free of charge, to any person obtaining 49 | a copy of the Font Software, to use, study, copy, merge, embed, modify, 50 | redistribute, and sell modified and unmodified copies of the Font 51 | Software, subject to the following conditions: 52 | 53 | 1) Neither the Font Software nor any of its individual components, 54 | in Original or Modified Versions, may be sold by itself. 55 | 56 | 2) Original or Modified Versions of the Font Software may be bundled, 57 | redistributed and/or sold with any software, provided that each copy 58 | contains the above copyright notice and this license. These can be 59 | included either as stand-alone text files, human-readable headers or 60 | in the appropriate machine-readable metadata fields within text or 61 | binary files as long as those fields can be easily viewed by the user. 62 | 63 | 3) No Modified Version of the Font Software may use the Reserved Font 64 | Name(s) unless explicit written permission is granted by the corresponding 65 | Copyright Holder. This restriction only applies to the primary font name as 66 | presented to the users. 67 | 68 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font 69 | Software shall not be used to promote, endorse or advertise any 70 | Modified Version, except to acknowledge the contribution(s) of the 71 | Copyright Holder(s) and the Author(s) or with their explicit written 72 | permission. 73 | 74 | 5) The Font Software, modified or unmodified, in part or in whole, 75 | must be distributed entirely under this license, and must not be 76 | distributed under any other license. The requirement for fonts to 77 | remain under this license does not apply to any document created 78 | using the Font Software. 79 | 80 | TERMINATION 81 | This license becomes null and void if any of the above conditions are 82 | not met. 83 | 84 | DISCLAIMER 85 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 86 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF 87 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 88 | OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE 89 | COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 90 | INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 91 | DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 92 | FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM 93 | OTHER DEALINGS IN THE FONT SOFTWARE. 94 | --------------------------------------------------------------------------------