Cleaned bash it up

This commit is contained in:
Robert R Evans
2010-10-02 12:29:17 -07:00
parent 74fe8378bd
commit 76ed68d18c
21 changed files with 37 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
#!/bin/bash
function rh {
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
}

View File

@@ -1,3 +1,5 @@
#!/bin/bash
function git_remote {
echo "Running: git remote add origin ${GIT_HOSTING}:$1.git"
git remote add origin $GIT_HOSTING:$1.git

View File

@@ -1,3 +1,5 @@
#!/bin/bash
function rails_jquery {
curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js
}

View File

@@ -1,3 +1,5 @@
#!/bin/bash
function nginx_reload() {
FILE="${NGINX_PATH}/logs/nginx.pid"
if [ -e $FILE ]; then