Cleaned bash it up
parent
74fe8378bd
commit
76ed68d18c
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
# Initialize Bash It
|
||||
|
||||
# Reload Library
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Your Custom Bash alias', functions, etc.
|
||||
#
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
function rh {
|
||||
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
function nginx_reload() {
|
||||
FILE="${NGINX_PATH}/logs/nginx.pid"
|
||||
if [ -e $FILE ]; then
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# List directory contents
|
||||
alias sl=ls
|
||||
alias ls='ls -G' # Compact view, show colors
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# colored grep
|
||||
export GREP_OPTIONS='--color=auto'
|
||||
export GREP_COLOR='1;33'
|
||||
|
|
@ -5,8 +7,5 @@ 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"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
export GREP_OPTIONS='--color=auto'
|
||||
export GREP_COLOR='1;32'
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# append to bash_history if Terminal.app quits
|
||||
shopt -s histappend
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#!/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'"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Aliases
|
||||
alias g='git'
|
||||
alias gst='git status'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
function tab() {
|
||||
osascript 2>/dev/null <<EOF
|
||||
tell application "System Events"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
#
|
||||
# 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'
|
||||
|
|
@ -18,4 +11,7 @@ alias rp='rails plugin'
|
|||
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'
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
function remove_gem {
|
||||
gem list | grep $1 | awk '{ print $1; }' | xargs sudo gem uninstall
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
switch () {
|
||||
rvm $1
|
||||
local v=$(rvm_version)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
rm_svn(){
|
||||
find $1 -name .svn -print0 | xargs -0 rm -rf
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Textmate
|
||||
alias e='mate . &'
|
||||
alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &'
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# VIM
|
||||
alias v='mvim --remote-silent'
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Some Colors
|
||||
BGREEN='\[\033[1;32m\]'
|
||||
GREEN='\[\033[0;32m\]'
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
#!/bin/bash
|
||||
export PS1='\[\033[1;34m\]$(prompt_char)\[\033[1;32m\] $(parse_git_branch) ${ORANGE}\h ${D}in ${GREEN}\w ${D}→ '
|
||||
Loading…
Reference in New Issue