+#!/bin/bash
# Initialize Bash It
# Reload Library
+#!/bin/bash
+
# Your Custom Bash alias', functions, etc.
#
\ No newline at end of file
+#!/bin/bash
+
function rh {
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
}
+#!/bin/bash
+
function git_remote {
echo "Running: git remote add origin ${GIT_HOSTING}:$1.git"
git remote add origin $GIT_HOSTING:$1.git
+#!/bin/bash
+
function rails_jquery {
curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js
}
+#!/bin/bash
+
function nginx_reload() {
FILE="${NGINX_PATH}/logs/nginx.pid"
if [ -e $FILE ]; then
+#!/bin/bash
+
# List directory contents
alias sl=ls
alias ls='ls -G' # Compact view, show colors
+#!/bin/bash
+
# colored grep
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;33'
# colored ls
export LSCOLORS='Gxfxcxdxdxegedabagacad'
-# Apply theming defaults
-PS1="%n@%m:%~%# "
-
# Load the theme
source "$BASH/themes/$BASH_THEME/$BASH_THEME.bash"
\ No newline at end of file
+++ /dev/null
-export GREP_OPTIONS='--color=auto'
-export GREP_COLOR='1;32'
\ No newline at end of file
+#!/bin/bash
+
# append to bash_history if Terminal.app quits
shopt -s histappend
+#!/bin/bash
+
# Desktop Programs
alias fireworks="open -a '/Applications/Adobe Fireworks CS3/Adobe Fireworks CS3.app'"
alias photoshop="open -a '/Applications/Adobe Photoshop CS3/Adobe Photoshop.app'"
+#!/bin/bash
+
# Aliases
alias g='git'
alias gst='git status'
+#!/bin/bash
+
function tab() {
osascript 2>/dev/null <<EOF
tell application "System Events"
-#
-# These is some Alias' for Rails
-#
-
-alias ss='script/server'
-alias sc='script/console'
-alias restart_app='touch tmp/restart.txt'
-
+#!/bin/bash
# Rails Commands
alias r='rails'
alias ra='rails application'
alias rd='rails destroy'
+alias ss='script/server'
+alias sc='script/console'
+alias restart_app='touch tmp/restart.txt'
alias devlog='tail -f log/development.log'
\ No newline at end of file
+#!/bin/bash
function remove_gem {
gem list | grep $1 | awk '{ print $1; }' | xargs sudo gem uninstall
}
\ No newline at end of file
+#!/bin/bash
switch () {
rvm $1
local v=$(rvm_version)
+#!/bin/bash
rm_svn(){
find $1 -name .svn -print0 | xargs -0 rm -rf
}
+#!/bin/bash
+
# Textmate
alias e='mate . &'
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
+#!/bin/bash
+
# VIM
alias v='mvim --remote-silent'
\ No newline at end of file
+#!/bin/bash
+
# Some Colors
BGREEN='\[\033[1;32m\]'
GREEN='\[\033[0;32m\]'
+#!/bin/bash
export PS1='\[\033[1;34m\]$(prompt_char)\[\033[1;32m\] $(parse_git_branch) ${ORANGE}\h ${D}in ${GREEN}\w ${D}→ '
\ No newline at end of file