From: Robert R Evans Date: Sat, 2 Oct 2010 19:29:17 +0000 (-0700) Subject: Cleaned bash it up X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=76ed68d18c1d4acd093448cc2476d7917563388b;p=common%2Fbash_it.git Cleaned bash it up --- diff --git a/bash_it.sh b/bash_it.sh index 9d1f0be..0aba05f 100644 --- a/bash_it.sh +++ b/bash_it.sh @@ -1,3 +1,4 @@ +#!/bin/bash # Initialize Bash It # Reload Library diff --git a/custom/custom.bash b/custom/custom.bash index 1176192..caae863 100644 --- a/custom/custom.bash +++ b/custom/custom.bash @@ -1,2 +1,4 @@ +#!/bin/bash + # Your Custom Bash alias', functions, etc. # \ No newline at end of file diff --git a/functions/base.bash b/functions/base.bash index c7dc909..bbb6f2f 100644 --- a/functions/base.bash +++ b/functions/base.bash @@ -1,3 +1,5 @@ +#!/bin/bash + function rh { history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head } diff --git a/functions/git.bash b/functions/git.bash index 17e8a70..50f4459 100644 --- a/functions/git.bash +++ b/functions/git.bash @@ -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 diff --git a/functions/javascript.bash b/functions/javascript.bash index 9f1d52e..f37859d 100644 --- a/functions/javascript.bash +++ b/functions/javascript.bash @@ -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 } diff --git a/functions/nginx.bash b/functions/nginx.bash index 702c0d8..7aa1653 100644 --- a/functions/nginx.bash +++ b/functions/nginx.bash @@ -1,3 +1,5 @@ +#!/bin/bash + function nginx_reload() { FILE="${NGINX_PATH}/logs/nginx.pid" if [ -e $FILE ]; then diff --git a/lib/aliases.bash b/lib/aliases.bash index d58a723..50acc51 100644 --- a/lib/aliases.bash +++ b/lib/aliases.bash @@ -1,3 +1,5 @@ +#!/bin/bash + # List directory contents alias sl=ls alias ls='ls -G' # Compact view, show colors diff --git a/lib/appearance.bash b/lib/appearance.bash index cde1af9..69ca55e 100644 --- a/lib/appearance.bash +++ b/lib/appearance.bash @@ -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" \ No newline at end of file diff --git a/lib/grep.bash b/lib/grep.bash deleted file mode 100644 index 5cb6983..0000000 --- a/lib/grep.bash +++ /dev/null @@ -1,2 +0,0 @@ -export GREP_OPTIONS='--color=auto' -export GREP_COLOR='1;32' \ No newline at end of file diff --git a/lib/history.bash b/lib/history.bash index 23731c5..3d489e9 100644 --- a/lib/history.bash +++ b/lib/history.bash @@ -1,3 +1,5 @@ +#!/bin/bash + # append to bash_history if Terminal.app quits shopt -s histappend diff --git a/plugins/base.bash b/plugins/base.bash index a39b37f..c256247 100644 --- a/plugins/base.bash +++ b/plugins/base.bash @@ -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'" diff --git a/plugins/git.bash b/plugins/git.bash index 2e4a6c7..d62edc6 100644 --- a/plugins/git.bash +++ b/plugins/git.bash @@ -1,3 +1,5 @@ +#!/bin/bash + # Aliases alias g='git' alias gst='git status' diff --git a/plugins/osx.bash b/plugins/osx.bash index fce88c7..a2ad79b 100644 --- a/plugins/osx.bash +++ b/plugins/osx.bash @@ -1,3 +1,5 @@ +#!/bin/bash + function tab() { osascript 2>/dev/null <