merge master branch.

This commit is contained in:
Kyle West
2012-03-21 15:33:34 -04:00
73 changed files with 800 additions and 133 deletions

10
zsh/color-man-pages.zsh Normal file
View File

@@ -0,0 +1,10 @@
# Less Colors for Man Pages
# http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;33;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline

13
zsh/fasd.zsh Normal file
View File

@@ -0,0 +1,13 @@
# Initialize fasd (https://github.com/clvv/fasd)
eval "$(fasd --init posix-alias zsh-hook)"
# aliases
# jump to recently used items
alias a='fasd -a' # any
alias s='fasd -s' # show / search / select
alias d='fasd -d' # directory
alias f='fasd -f' # file
alias z='fasd_cd -d' # cd, same functionality as j in autojump
alias v='f -e vim' # quick opening files with vim

6
zsh/git.zsh Normal file
View File

@@ -0,0 +1,6 @@
# Speed up git completion
# http://talkings.org/post/5236392664/zsh-and-slow-git-completion
__git_files () {
_wanted files expl 'local files' _files
}

3
zsh/path.zsh Normal file
View File

@@ -0,0 +1,3 @@
# path
export PATH=/usr/local/bin:$PATH

View File

@@ -15,3 +15,4 @@ alias -g G='| grep' # now you can do: ls foo G something
# usage: fn foo
# to find all files containing 'foo' in the name
function fn() { ls **/*$1* }

View File

@@ -17,8 +17,9 @@ if [[ -d $HOME/.oh-my-zsh ]]; then
# Set name of the theme to load.
ZSH_THEME="robbyrussell"
# Default plugins.
plugins=(git ruby)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(vi-mode git rvm ruby rails autojump bundler gem gnu-utils heroku rake redis-cli zsh-syntax-highlighting history-substring-search)
# source every zsh file in user's custom/zsh/before. This is useful for setting theme and plugins.
if [[ -d $yadr/custom/zsh/ ]]; then
@@ -63,10 +64,3 @@ if [[ -a ~/.secrets ]] then
source ~/.secrets
fi
# Speed up git completion
# http://talkings.org/post/5236392664/zsh-and-slow-git-completion
__git_files () {
_wanted files expl 'local files' _files
}
export PATH=/usr/local/bin:$PATH

4
zsh/zvm.zsh Normal file
View File

@@ -0,0 +1,4 @@
# Use zmv, which is amazing
autoload -U zmv
alias zmv="noglob zmv -W"