Download the appropriate version for your OS at http://www.vim.org/download.php
vimtutor
| autoload -Uz vcs_info | |
| zstyle ':vcs_info:*' stagedstr '%F{green}●%f' | |
| zstyle ':vcs_info:*' unstagedstr '%F{red}●%f' | |
| zstyle ':vcs_info:*' check-for-changes true | |
| zstyle ':vcs_info:*' formats '[%F{027}%b%f%c%u] ' | |
| zstyle ':vcs_info:*' enable git | |
| theme_precmd () { | |
| if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { | |
| zstyle ':vcs_info:*' formats '[%F{027}%b%f%c%u] ' |
| # Replace the Gemfile wholesale, it's just easier | |
| # | |
| remove_file "Gemfile" | |
| create_file "Gemfile", <<-EOF | |
| source 'https://rubygems.org' | |
| ruby '2.1.5' | |
| gem 'rails', '4.2.0' | |
| gem 'pg' |
| #!/bin/bash | |
| SESSION=`basename $PWD` | |
| tmux new-session -d -s $SESSION -n 'Shell' | |
| tmux split-window -h | |
| if [[ -e Procfile ]]; then | |
| tmux new-window -t $SESSION:1 -n 'Foreman' |
Download the appropriate version for your OS at http://www.vim.org/download.php
vimtutor
| def body_tag(&blk) | |
| controller_name = controller.class.to_s.underscore.gsub(/_controller$/, '').gsub(/\//,'_') | |
| action_name = controller.action_name.underscore.gsub(/_/,'-') | |
| content_tag(:body, :id => "#{controller_name}-#{action_name}", :class => controller_name, &blk) | |
| end |
| # Rails application template for Rails 3 + Postgres + Git + haml + JQuery + Rspec + Cucumber + Capybara + FactoryGirl | |
| # by Brian Smith <[email protected]> | |
| # Create a default README | |
| file "README.md", <<-EOF | |
| #{app_name} | |
| #{"=" * app_name.length} | |
| TODO: description |