Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
45 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
#!/bin/sh | |||
ps aux | grep nginx | awk '{print }' | xargs sudo kill -9 | |||
sudo nginx | |||
script/unicorn_dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,33 +1,21 @@ | |||
# Use `hub` as our git wrapper: | # Use `hub` as our git wrapper: | ||
# http://defunkt.github.com/hub/ | # http://defunkt.github.com/hub/ | ||
# | git(){hub "$@"} | ||
# I use JRuby substantially, and we want to make sure hub is run using MRI | |||
# regardless of which Ruby you're using or else the `git status` in your prompt | |||
# will take seven thousand seconds to run `ls`. | |||
# | |||
# I'm hardcoding it to an installed rvm (using rvm's `rvm 1.8.7,ruby /hub/path` | |||
# syntax is way too slow). It should work fine for those without rvm, though. | |||
if [[ -s $HOME/.rvm/scripts/rvm ]] | |||
then | |||
# alias git='$HOME/.rvm/rubies/ruby-1.8.7-p302/bin/ruby `which hub`' | |||
alias git='$HOME/.rvm/rubies/ruby-1.8.7-p330/bin/ruby `which hub`' | |||
fi | |||
|
|||
# The rest of my fun git aliases | |||
# alias ga='git add .' | |||
ga() { | ga() { | ||
git add . | git add . | ||
git add -u | git add -u | ||
} | } | ||
alias gl='git pull --rebase --prune' | alias g='git' | ||
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | alias gp='git pull --rebase --prune' | ||
alias gp='git push origin HEAD' | alias gpush='git push origin HEAD' | ||
# alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |||
# alias gp='git push origin HEAD' | |||
alias gd='git diff' | alias gd='git diff' | ||
alias gc='git commit' | alias gc='git commit' | ||
alias gitc='git commit -m' | alias gitc='git commit -m' | ||
alias gca='git commit -a' | # alias gca='git commit -a' | ||
alias gco='git checkout' | alias gco='git checkout' | ||
alias gb='git branch' | alias gb='git branch' | ||
alias gss='git status -sb' # upgrade your git if -sb breaks for you. it's fun. | alias gss='git status -sb' # upgrade your git if -sb breaks for you. it's fun. | ||
alias gs='git status' # upgrade your git if -sb breaks for you. it's fun. | alias gs='git status' | ||
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" | # alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,12 +1,13 @@ | |||
alias r='rvm use 1.8.7' | alias r='rvm use 1.8.7' | ||
|
|
||
alias f='RAILS_ENV=fi' | |||
|
|||
alias sc='script/console' | alias sc='script/console' | ||
alias ss='script/server -p `available_rails_port`' | alias ss='script/server -p `available_rails_port`' | ||
alias sg='script/generate' | alias sg='script/generate' | ||
alias sd='script/destroy' | alias sd='script/destroy' | ||
|
|
||
alias migrate='rake db:migrate db:test:clone' | alias migrate='rake db:migrate db:test:clone' | ||
|
|
||
alias s="ps aux | grep \"[r]uby\" | grep script/server || echo \"You're not running any, dawg.\"" | alias s="ps aux | grep \"[r]uby\" | grep script/server || echo \"You're not running any, dawg.\"" | ||
|
|||
alias killnginx="ps aux | grep nginx | awk '{print $2}' | xargs sudo kill -9" | |||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,5 @@ | |||
alias dotmate='mate $ZSH' | alias dotmate='mate $ZSH' | ||
alias dotcd='cd $ZSH' | alias dotcd='cd $ZSH' | ||
|
|
||
alias reload!='. ~/.zshrc' | alias reload!='. ~/.zshrc' | ||
alias v=mvim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters