Skip to content

Commit

Permalink
Cleanup session at the hack a thon
Browse files Browse the repository at this point in the history
  • Loading branch information
spicycode committed Apr 18, 2012
1 parent 5bd7518 commit 4aea378
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .zsh/aliases.zsh
Expand Up @@ -4,5 +4,10 @@ alias ls='ls -GFh'
# Same as above, but in long listing format # Same as above, but in long listing format
alias ll='ls -GFhl' alias ll='ls -GFhl'


alias ri='ri -Tf ansi'

alias mysql='mysql -u root' alias mysql='mysql -u root'
alias mysqladmin='mysqladmin -u root' alias mysqladmin='mysqladmin -u root'

alias e='aquamacs'
alias be='bundle exec'
1 change: 0 additions & 1 deletion .zsh/completion.zsh
Expand Up @@ -44,7 +44,6 @@ zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b' zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name '' zstyle ':completion:*' group-name ''



# ignore completion functions (until the _ignored completer) # ignore completion functions (until the _ignored completer)
zstyle ':completion:*:functions' ignored-patterns '_*' zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*:scp:*' tag-order files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *' zstyle ':completion:*:scp:*' tag-order files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
Expand Down
11 changes: 10 additions & 1 deletion .zsh/exports.zsh
Expand Up @@ -8,7 +8,7 @@ export CDPATH=.:~/src/
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home


# Setup terminal, and turn on colors # Setup terminal, and turn on colors
export TERM=xterm-color export TERM=xterm-256color
export CLICOLOR=1 export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad export LSCOLORS=Gxfxcxdxbxegedabagacad


Expand All @@ -25,3 +25,12 @@ export EDITOR='vim'


export NODE_PATH=/usr/local/lib/node export NODE_PATH=/usr/local/lib/node
export PYTHONPATH=/usr/local/lib/python2.6/site-packages export PYTHONPATH=/usr/local/lib/python2.6/site-packages
# CTAGS Sorting in VIM/Emacs is better behaved with this in place
export LC_COLLATE=C

# https://gist.github.com/1688857
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000
20 changes: 18 additions & 2 deletions .zsh/functions.zsh
@@ -1,6 +1,6 @@
function zsh_recompile { function zsh_recompile {
autoload -U zrecompile autoload -U zrecompile

rm -f ~/.zsh/**/*.zwc
[[ -f ~/.zshrc ]] && zrecompile -p ~/.zshrc [[ -f ~/.zshrc ]] && zrecompile -p ~/.zshrc
[[ -f ~/.zshrc.zwc.old ]] && rm -f ~/.zshrc.zwc.old [[ -f ~/.zshrc.zwc.old ]] && rm -f ~/.zshrc.zwc.old


Expand All @@ -22,7 +22,7 @@ function extract {
*.tar.bz2) tar xjf $1 ;; *.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;; *.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;; *.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;; *.rar) unrar x $1 ;;
*.gz) gunzip $1 ;; *.gz) gunzip $1 ;;
*.tar) tar xf $1 ;; *.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;; *.tbz2) tar xjf $1 ;;
Expand All @@ -44,3 +44,19 @@ function pg_start {
function pg_stop { function pg_stop {
/usr/local/bin/pg_ctl -D /usr/local/var/postgres stop -s -m fast /usr/local/bin/pg_ctl -D /usr/local/var/postgres stop -s -m fast
} }

function mysql_start {
mysql.server start
}

function mysql_stop {
mysql.server stop
}

function ss {
./script/rails server $*
}

function sc {
./script/rails console $*
}
8 changes: 8 additions & 0 deletions .zsh/hitch.zsh
@@ -0,0 +1,8 @@
# Add the following to your ~/.bashrc or ~/.zshrc
hitch() {
command hitch "$@"
if [[ -s "$HOME/.hitch_export_authors" ]] ; then source "$HOME/.hitch_export_authors" ; fi
}
alias unhitch='hitch -u'
# Uncomment to persist pair info between terminal instances
# hitch
8 changes: 4 additions & 4 deletions .zshrc
@@ -1,6 +1,3 @@
# Load vcs_info so precmd can utilize it
# autoload -Uz vcs_info

source ~/.zsh/colors.zsh source ~/.zsh/colors.zsh
source ~/.zsh/setopt.zsh source ~/.zsh/setopt.zsh
source ~/.zsh/exports.zsh source ~/.zsh/exports.zsh
Expand All @@ -11,5 +8,8 @@ source ~/.zsh/bindkeys.zsh
source ~/.zsh/functions.zsh source ~/.zsh/functions.zsh
source ~/.zsh/history.zsh source ~/.zsh/history.zsh
source ~/.zsh/zsh_hooks.zsh source ~/.zsh/zsh_hooks.zsh
source ~/.zsh/hitch.zsh

if [[ -s /Users/spicycode/.rvm/scripts/rvm ]] ; then source /Users/spicycode/.rvm/scripts/rvm ; fi


source ~/.rvm/scripts/rvm PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

0 comments on commit 4aea378

Please sign in to comment.