Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove more files I'm not using anymore.

  • Loading branch information...
commit da59fe580c584bd91a1d325079af14d320500067 1 parent 58289a3
@judy authored
Showing with 0 additions and 228 deletions.
  1. +0 −109 .workrc
  2. +0 −5 .zshenv
  3. +0 −114 .zshrc
View
109 .workrc
@@ -1,109 +0,0 @@
-# vim:set ft=sh sw=2 sts=2:
-
-[ -e "$WORK" ] || WORK_DIR="$HOME/work"
-[ -e "$PLAY" ] || PLAY_DIR="$HOME/play"
-export WORK_DIR
-export PLAY_DIR
-
-for dir in /opt/local/bin /usr/local/bin "$HOME/bin"; do
- case "$PATH:" in
- *:"$dir":*) PATH="`echo "$PATH"|sed -e "s#:$dir##"`" ;;
- esac
- [ ! -d "$dir" ] || PATH="$dir:$PATH"
-done
-for dir in /usr/local/sbin /opt/local/sbin; do
- case ":$PATH:" in
- *:"$dir":*) ;;
- *) [ ! -d "$dir" ] || PATH="$PATH:$dir" ;;
- esac
-done
-
-pcd() {
- cd "$PLAY_DIR/$1"
-}
-
-wcd() {
- cd "$WORK_DIR/$1"
-}
-
-# Tab completion
-if [ -n "$BASH_VERSION" ]; then
- _wcd()
- {
- local cur projects
-
- [ -r "$PLAY_DIR" ] || return 0
-
- eval 'COMPREPLY=()'
- cur=${COMP_WORDS[COMP_CWORD]}
- projects=$(\ls "$PLAY_DIR")
-
- if [ $COMP_CWORD -eq 1 ]; then
- eval 'COMPREPLY=( $(compgen -o filenames -W "$projects" $cur) )'
- fi
-
- return 0
- }
- complete -F _wcd wcd wclone
-elif [ -n "$ZSH_VERSION" ]; then
- #compdef '_files -W "$PLAY_DIR"' wcd wclone
- compctl -/ -W "$PLAY_DIR" pcd
- compctl -/ -W "$WORK_DIR" wcd
-fi
-
-rails_root() {
- (
- dir=${1:-$(pwd)}
- i=0
- while [ "/" != "$dir" -a "$i" -ne 16 ]; do
- if [ -f "$dir/config/environment.rb" ]; then
- echo "$dir"
- return 0
- fi
- dir="$(dirname "$dir")"
- i=$(expr $i + 1)
- done
- return 1
- )
-}
-
-script_rails() {
- if [ -f "`rails_root`/script/rails" ]; then
- "`rails_root`/script/rails" "$@"
- else
- local name
- name="$1"
- shift
- "`rails_root`/script/$name" "$@"
- fi
-}
-
-alias sc='script_rails console'
-alias ss='script_rails server -u'
-alias sdbc='script_rails dbconsole -p'
-
-alias testify="watchr ~/.watchr.rb"
-alias vanguard="guard -c -n false"
-alias vangaurd="vanguard"
-
-alias ll='ls -l'
-
-alias gap='git add -p'
-alias gb='git branch'
-alias gc='git commit -v'
-alias gca='git commit -a -v'
-alias gco="git checkout"
-alias gd='git diff'
-alias gdc='git diff --cached'
-alias gdh='git diff HEAD'
-alias gl='git pull'
-alias glod='git log --oneline --decorate'
-alias gp='git push'
-alias gpr='git pull --rebase'
-alias grep='grep --color=auto --exclude="*~"'
-alias gst='git status'
-alias gr='git rebase'
-alias grc='git rebase --continue'
-alias gra='git rebase --abort'
-alias vi='vim'
-
View
5 .zshenv
@@ -1,5 +0,0 @@
-# This is the location of all of your work projects, including the dotmatrix
-# files. Please change it if you store your files elsewhere, eg. ~/src or
-# ~/Documents/projects
-export WORK_DIR="$HOME/work"
-export PLAY_DIR="$HOME/play"
View
114 .zshrc
@@ -1,114 +0,0 @@
-path=(
- .git/safe/../../bin
- $HOME/bin
- /usr/local/bin
- /usr/local/sbin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /usr/X11/bin
- $HOME/.rvm/bin
- ./bin:...
-)
-
-# load all config/library scripts
-for config_file ($PLAY_DIR/dotmatrix/lib/*.zsh) source $config_file
-
-# import the company rc file, if present
-wrc="$PLAY_DIR/dotmatrix/.workrc"
-[[ -a $wrc ]] && source $wrc
-
-# color term
-export CLICOLOR=1 # some shells need this for colorized output
-export GREP_COLOR=32 # colorized grep!
-export GREPCOLOR=32 # also colorizes grep, depending on version
-export LSCOLORS=Dxfxcxdxbxegedabadacad
-export ZLS_COLORS=$LSCOLORS
-export TERM=xterm-256color
-export LC_CTYPE=en_US.UTF-8
-export LESS=FRX
-
-# make with the nice completion
-autoload -U compinit; compinit
-
-# make with the pretty colors
-autoload colors; colors
-
-# options
-setopt appendhistory autocd extendedglob histignoredups nonomatch prompt_subst
-
-# Bindings
-# external editor support
-autoload edit-command-line
-zle -N edit-command-line
-bindkey '^x^e' edit-command-line
-
-# Partial word history completion
-bindkey '\ep' up-line-or-search
-bindkey '\en' down-line-or-search
-bindkey '\ew' kill-region
-bindkey '^r' history-incremental-search-backward
-
-# history
-HISTFILE=~/.zsh_history
-HISTSIZE=5000
-SAVEHIST=10000
-setopt APPEND_HISTORY
-setopt INC_APPEND_HISTORY
-
-# default apps
-(( ${+PAGER} )) || export PAGER='less'
-(( ${+EDITOR} )) || export EDITOR='vim'
-(( ${+PSQL_EDITOR} )) || export PSQL_EDITOR='vim'
-
-# just say no to zle vim mode:
-bindkey -e
-
-# common aliases
-alias mv='nocorrect mv' # no spelling correction on mv
-alias cp='nocorrect cp'
-alias mkdir='nocorrect mkdir'
-alias spec='nocorrect spec'
-alias rspec='nocorrect rspec'
-alias hitch='nocorrect hitch'
-alias ll='ls -laF'
-alias l.='ls -ld .[^.]*'
-alias lsd='ls -ld *(-/DN)'
-alias md='mkdir -p'
-alias rd='rmdir'
-alias cd..='cd ..'
-alias ..='cd ..'
-alias spec='spec -c'
-alias heroku='nocorrect heroku'
-
-alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
-alias shortprompt="export PS1='$ '" # For screencasting.
-alias slt="subl"
-
-# Git functions
-alias gd='git diff --word-diff | slt'
-alias gba='git branch -a'
-alias grm='git ls-files --deleted | xargs git rm'
-alias gx='gitx --all'
-
-# set cd autocompletion to commonly visited directories
-cdpath=(~ ~/src $DEV_DIR ~/play)
-
-# load from Rubygems
-export RUBYOPT='rubygems'
-
-# # fix mysql2 gem
-# export DYLD_LIBRARY_PATH="/usr/local/Cellar/mysql/5.5.15/lib/"
-
-# Load the theme
-source "$PLAY_DIR/dotmatrix/themes/judy_256.zsh"
-
-# import local zsh customizations, if present
-zrcl="$HOME/.zshrc.local"
-[[ -a $zrcl ]] && source $zrcl
-
-PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
-
-# Fun stuff
-wiki() { dig +short txt $1.wp.dg.cx; }
Please sign in to comment.
Something went wrong with that request. Please try again.