This commit is contained in:
Daniel Dixon 2015-02-07 16:35:02 +00:00
commit d299c00140
4 changed files with 88 additions and 2 deletions

View file

@ -27,9 +27,89 @@ else
fi
# List direcory contents
alias lsa='ls -lah'
alias l='ls -la'
#alias ll='ls -l'
alias sl=ls # often screw this up
alias l='ls -lah'
alias ll='ls -lh'
alias la='ls -lAh'
alias afind='ack-grep -il'
# DD: mine, or added from https://github.com/thoughtbot/dotfiles
# Folder aliases
alias ls='ls -F'
alias la='la -A'
alias ll='ls -lA'
alias ..='cd ..'
alias ...='../..'
alias path='echo -e ${PATH//:/\\\n}'
# Ruby aliases
alias rss='ruby script/server'
alias rssd='ruby script/server -u'
alias rsc='ruby script/console'
# Gem/Rails aliases
alias geml='gem list --local | more'
alias geme='cd `rvm gemdir`/gems; ls'
alias cap='bundle exec cap'
alias rake='bundle exec rake'
#alias migrate="rake db:migrate db:test:prepare"
#alias remigrate="rake db:migrate && rake db:migrate:redo && rake db:schema:dump db:test:prepare"
#alias remongrate="rake mongoid:migrate && rake mongoid:migrate:redo"
# POW aliases
alias p='powder'
# Git aliases
alias g="git"
alias glog='git log --color'
alias gd='git diff --color'
alias gs='git status'
alias gcom='git commit'
alias gpu='git pull'
alias gps='git push'
alias gcm='git checkout master'
alias gcp='git checkout production'
alias gch='git checkout'
alias gmm='git merge master'
#alias gci="git pull --rebase && rake && git push"
alias tlf="tail -f"
alias ln='ln -v'
alias mkdir='mkdir -p'
alias -g G='| grep'
alias -g M='| less'
alias -g L='| wc -l'
alias -g ONE="| awk '{ print \$1}'"
# git
alias gci="git pull --rebase && rake && git push"
# Bundler
alias b="bundle"
alias be="bundle exec"
alias bake="bundle exec rake"
# Tests and Specs
alias t="ruby -I test"
alias s="bundle exec rspec"
alias cuc="bundle exec cucumber"
# Rubygems
alias gi="gem install"
alias giv="gem install -v"
# Network
alias whats-my-ip="curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+'"
# Annoyances
alias heroku='nocorrect heroku'
alias h='heroku'
alias jitsu='nocorrect jitsu'
alias guard='bundle exec guard'

4
lib/editor.zsh Normal file
View file

@ -0,0 +1,4 @@
#
# Editor options
#
export EDITOR=subl

2
lib/path.zsh Normal file
View file

@ -0,0 +1,2 @@
# DD: added, so that Titanium Appcelerator will work: http://developer.appcelerator.com/question/145794/launching-simulator-process-failed
export PATH=$PATH:/usr/local/share/npm/bin

View file

@ -5,7 +5,7 @@ export ZSH=$HOME/.oh-my-zsh
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
ZSH_THEME="eastwood"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@ -45,7 +45,7 @@ ZSH_THEME="robbyrussell"
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
plugins=(git ssh-agent sublime)
# User configuration