added gemrc and updated documentation.

This commit is contained in:
Kyle West 2012-01-30 20:34:50 -05:00
parent 1662be9ab3
commit 810b9615e5
3 changed files with 28 additions and 14 deletions

View File

@ -131,7 +131,7 @@ rake install
``` ```
### ZSH ## ZSH
After a lifetime of bash, I am now using ZSH as my default shell because of its awesome globbing After a lifetime of bash, I am now using ZSH as my default shell because of its awesome globbing
and autocomplete features (the spelling fixer autocomplete is worth the money alone). and autocomplete features (the spelling fixer autocomplete is worth the money alone).
@ -148,31 +148,31 @@ mnemonic aliases. Please feel free to edit them:
ae # alias edit ae # alias edit
ar # alias reload ar # alias reload
**ZSH Customizations** ### ZSH Customizations
* Vim mode * Vim mode
* Bash style ctrl-R for reverse history finder * Bash style ctrl-R for reverse history finder
* Fuzzy matching - if you mistype a directory name, tab completion will fix it * Fuzzy matching - if you mistype a directory name, tab completion will fix it
### Pry ## Pry
Pry (http://pry.github.com/) offers a much better out of the box IRB experience Pry (http://pry.github.com/) offers a much better out of the box IRB experience
with colors, tab completion, and lots of other tricks. You should: with colors, tab completion, and lots of other tricks. You should:
#### Install the gem ### Install the gem
```bash ```bash
gem install pry gem install pry
gem install awesome_print gem install awesome_print
``` ```
#### Use pry ### Use pry
* as irb: `pry` * as irb: `pry`
* as rails console: `script/console --irb=pry` * as rails console: `script/console --irb=pry`
#### Pry Customizations: ### Pry Customizations:
* `clear` command to clear screen * `clear` command to clear screen
* `sql` command to execute something (within a rails console) * `sql` command to execute something (within a rails console)
@ -181,9 +181,9 @@ gem install awesome_print
* type `help` to see all the commands * type `help` to see all the commands
### Git ## Git
#### User Info ### User Info
Since the gitconfig doesn't contain the user info, I recommend using env variables. Put the following in Since the gitconfig doesn't contain the user info, I recommend using env variables. Put the following in
your `~/.secrets` file which is automatically referenced by the provided zshrc: your `~/.secrets` file which is automatically referenced by the provided zshrc:
@ -198,7 +198,7 @@ your `~/.secrets` file which is automatically referenced by the provided zshrc:
export GITHUB_USER='your_user_name' export GITHUB_USER='your_user_name'
export GITHUB_TOKEN='your_github_token' export GITHUB_TOKEN='your_github_token'
#### Git Customizations: ### Git Customizations:
* `git l` - a much more usable git log * `git l` - a much more usable git log
* `git b` - a list of branches with summary of last commit * `git b` - a list of branches with summary of last commit
@ -212,17 +212,19 @@ your `~/.secrets` file which is automatically referenced by the provided zshrc:
* `git unstage` (remove from index) and `git uncommit` (revert to the time prior to the last commit - dangerous if already pushed) aliases * `git unstage` (remove from index) and `git uncommit` (revert to the time prior to the last commit - dangerous if already pushed) aliases
### Vim ## RubyGems
A .gemrc is included. Never again type `gem install whatever --no-ri --no-rdoc`. `--no-ri --no-rdoc` is done by default.
## Vim Configuration
The .vimrc is well commented and broken up by settings. I encourage you The .vimrc is well commented and broken up by settings. I encourage you
to take a look and learn some of my handy aliases, or comment them out to take a look and learn some of my handy aliases, or comment them out
if you don't like them, or make your own. if you don't like them, or make your own.
## Vim Configuration ### Vim Keymaps
### Vim Keymaps (in vim/plugin/settings)
The files in vim/plugin/settings are customizations stored on a per-plugin The files in vim/plugin/settings are customizations stored on a per-plugin
basis. The main keymap is available in skwp-keymap.vim, but some of the vim basis. The main keymap is available in skwp-keymap.vim, but some of the vim

View File

@ -6,6 +6,7 @@ task :install => :submodules do
linkables = [] linkables = []
linkables += Dir.glob('git/*') if want_to_install?('git') linkables += Dir.glob('git/*') if want_to_install?('git')
linkables += Dir.glob('irb/*') if want_to_install?('irb/pry') linkables += Dir.glob('irb/*') if want_to_install?('irb/pry')
linkables += Dir.glob('ruby/*') if want_to_install?('ruby (gems)')
linkables += Dir.glob('{vim,vimrc}') if want_to_install?('vim') linkables += Dir.glob('{vim,vimrc}') if want_to_install?('vim')
linkables += Dir.glob('zsh/zshrc') if want_to_install?('zsh') linkables += Dir.glob('zsh/zshrc') if want_to_install?('zsh')

11
ruby/gemrc Normal file
View File

@ -0,0 +1,11 @@
---
:update_sources: true
:sources:
- http://gems.rubyforge.org/
- http://gems.github.com
:benchmark: false
:bulk_threshold: 1000
:backtrace: false
:verbose: true
gem: --no-ri --no-rdoc