From e12f239b2ae6de220f1a5da183f5ac4dc5367bbe Mon Sep 17 00:00:00 2001 From: Daniel Dixon Date: Wed, 20 Jun 2012 09:56:22 -0500 Subject: [PATCH] Added more personalization. --- README.textile | 6 ++-- lib/aliases.zsh | 70 +++++++++++++++++++++++++++++++++++- templates/zshrc.zsh-template | 2 +- 3 files changed, 73 insertions(+), 5 deletions(-) diff --git a/README.textile b/README.textile index a38e2d7cf..c4fbcd64d 100644 --- a/README.textile +++ b/README.textile @@ -13,18 +13,18 @@ You can install this via the command line with either `curl` or `wget`. h4. via `curl` -@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh@ +@curl -L https://github.com/onedanshow/oh-my-zsh/raw/master/tools/install.sh | sh@ h4. via `wget` -@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@ +@wget --no-check-certificate https://github.com/onedanshow/oh-my-zsh/raw/master/tools/install.sh -O - | sh@ h3. The manual way 1. Clone the repository - @git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@ + @git clone git://github.com/onedanshow/oh-my-zsh.git ~/.oh-my-zsh@ 2. Create a new zsh config by copying the zsh template we've provided. diff --git a/lib/aliases.zsh b/lib/aliases.zsh index 0555be264..f8648a634 100644 --- a/lib/aliases.zsh +++ b/lib/aliases.zsh @@ -17,8 +17,76 @@ alias history='fc -l 1' # List direcory contents alias lsa='ls -lah' alias l='ls -la' -alias ll='ls -l' +#alias ll='ls -l' alias sl=ls # often screw this up 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" + +# 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\.]+'" + + diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index a1ed0881f..b08ca0bb0 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -29,7 +29,7 @@ ZSH_THEME="eastwood" # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(git) +plugins=(git ssh-agent sublime) source $ZSH/oh-my-zsh.sh