Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cleanup session at the hack a thon

  • Loading branch information...
commit 4aea3786aeb6dd6e7fbc7bd3121fb4e1a7645fe4 1 parent 5bd7518
@spicycode authored
View
5 .zsh/aliases.zsh
@@ -4,5 +4,10 @@ alias ls='ls -GFh'
# Same as above, but in long listing format
alias ll='ls -GFhl'
+alias ri='ri -Tf ansi'
+
alias mysql='mysql -u root'
alias mysqladmin='mysqladmin -u root'
+
+alias e='aquamacs'
+alias be='bundle exec'
View
1  .zsh/completion.zsh
@@ -44,7 +44,6 @@ zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''
-
# ignore completion functions (until the _ignored completer)
zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*:scp:*' tag-order files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
View
11 .zsh/exports.zsh
@@ -8,7 +8,7 @@ export CDPATH=.:~/src/
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
# Setup terminal, and turn on colors
-export TERM=xterm-color
+export TERM=xterm-256color
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
@@ -25,3 +25,12 @@ export EDITOR='vim'
export NODE_PATH=/usr/local/lib/node
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
View
20 .zsh/functions.zsh
@@ -1,6 +1,6 @@
function zsh_recompile {
autoload -U zrecompile
-
+ rm -f ~/.zsh/**/*.zwc
[[ -f ~/.zshrc ]] && zrecompile -p ~/.zshrc
[[ -f ~/.zshrc.zwc.old ]] && rm -f ~/.zshrc.zwc.old
@@ -22,7 +22,7 @@ function extract {
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
- *.rar) rar x $1 ;;
+ *.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
@@ -44,3 +44,19 @@ function pg_start {
function pg_stop {
/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 $*
+}
View
8 .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
View
8 .zshrc
@@ -1,6 +1,3 @@
-# Load vcs_info so precmd can utilize it
-# autoload -Uz vcs_info
-
source ~/.zsh/colors.zsh
source ~/.zsh/setopt.zsh
source ~/.zsh/exports.zsh
@@ -11,5 +8,8 @@ source ~/.zsh/bindkeys.zsh
source ~/.zsh/functions.zsh
source ~/.zsh/history.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
Please sign in to comment.
Something went wrong with that request. Please try again.