-#!/bin/bash
+#!/usr/bin/env bash
# Bundler Commands
alias be="bundle exec"
-#!/bin/bash
+#!/usr/bin/env bash
case $OSTYPE in
linux*)
-#!/bin/bash
+#!/usr/bin/env bash
# List directory contents
alias sl=ls
-#!/bin/bash
+#!/usr/bin/env bash
# Aliases
alias gcl='git clone'
-#!/bin/bash
+#!/usr/bin/env bash
# heroku
alias h='heroku'
-#!/bin/bash
+#!/usr/bin/env bash
alias hs='hg status'
alias hsum='hg summary'
echo " hsum = hg summary"
echo " hcm = hg commit -m"
echo
-}
\ No newline at end of file
+}
-#!/bin/bash
+#!/usr/bin/env bash
# Desktop Programs
alias fireworks="open -a '/Applications/Adobe Fireworks CS3/Adobe Fireworks CS3.app'"
-#!/bin/bash
+#!/usr/bin/env bash
# Rails Commands
alias r='rails'
-#!/bin/bash
+#!/usr/bin/env bash
case $OSTYPE in
darwin*)
-#!/bin/bash
+#!/usr/bin/env bash
alias tls="$TODO ls"
alias ta="$TODO a"
-#!/bin/bash
+#!/usr/bin/env bash
-alias v='mvim --remote-tab'
\ No newline at end of file
+alias v='mvim --remote-tab'
-#!/bin/bash
+#!/usr/bin/env bash
# Initialize Bash It
# Reload Library
-#!/bin/bash
+#!/usr/bin/env bash
#
# Bash completion support for Fabric (http://fabfile.org/)
#
-#!/bin/bash
+#!/usr/bin/env bash
# Bash completion support for Rake, Ruby Make.
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
-#!/bin/bash
+#!/usr/bin/env bash
# Bash completion support for ssh.
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
-#!/bin/bash
+#!/usr/bin/env bash
# tmux completion
# See: http://www.debian-administration.org/articles/317 for how to write more.
-#!/bin/bash
+#!/usr/bin/env bash
#
# This is an example file. Don't use this for your custom scripts. Instead, create another file within the
# custom directory.
-#!/bin/bash
+#!/usr/bin/env bash
# colored grep
export GREP_OPTIONS='--color=auto'
-#!/bin/bash
+#!/usr/bin/env bash
# append to bash_history if Terminal.app quits
shopt -s histappend
function rh {
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
-}
\ No newline at end of file
+}
-#!/bin/bash
+#!/usr/bin/env bash
# http://www.twistedmatrix.com/users/glyph/preexec.bash.txt
# preexec.bash -- Bash support for ZSH-like 'preexec' and 'precmd' functions.
-#!/bin/bash
+#!/usr/bin/env bash
# For generic functions.
-#!/bin/bash
+#!/usr/bin/env bash
battery_percentage(){
if command_exists acpi;
-#!/bin/bash
+#!/usr/bin/env bash
# Directory stack navigation:
#
-#!/bin/bash
+#!/usr/bin/env bash
function git_remote {
echo "Running: git remote add origin ${GIT_HOSTING}:$1.git"
-#!/bin/bash
+#!/usr/bin/env bash
hg_dirty() {
hg status --no-color 2> /dev/null \
| awk '$1 == "?" { print "?" } $1 != "?" { print "!" }' \
hg_branch() {
hg branch 2> /dev/null
-}
\ No newline at end of file
+}
-#!/bin/bash
+#!/usr/bin/env bash
#
# The install directory is hard-coded. TOOD: allow the directory to be specified on the command line.
#
-#!/bin/bash
+#!/usr/bin/env bash
editpost() {
unset SITE
-#!/bin/bash
+#!/usr/bin/env bash
# add mactex to the path if its present
MACTEX_PATH=/usr/local/texlive/2009/bin/universal-darwin
-#!/bin/bash
+#!/usr/bin/env bash
function nginx_reload() {
FILE="${NGINX_PATH}/logs/nginx.pid"
echo "Nginx pid file not found"
return 0
fi
-}
\ No newline at end of file
+}
-#!/bin/bash
+#!/usr/bin/env bash
function tab() {
osascript 2>/dev/null <<EOF
-#!/bin/bash
+#!/usr/bin/env bash
if [ $(uname) = "Linux" ]
then
-#!/bin/bash
+#!/usr/bin/env bash
# Load rbebv, if you are using it
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
# Load the auto-completion script if rbenv was loaded.
-source ~/.rbenv/completions/rbenv.bash
\ No newline at end of file
+source ~/.rbenv/completions/rbenv.bash
-#!/bin/bash
+#!/usr/bin/env bash
function remove_gem {
gem list | grep $1 | awk '{ print $1; }' | xargs sudo gem uninstall
-}
\ No newline at end of file
+}
-#!/bin/bash
+#!/usr/bin/env bash
# Load RVM, if you are using it
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
-#!/bin/bash
+#!/usr/bin/env bash
function add_ssh() {
echo -en "\n\nHost $1\n HostName $2\n User $3\n ServerAliveInterval 30\n ServerAliveCountMax 120" >> ~/.ssh/config
function sshlist() {
awk '$1 ~ /Host$/ { print $2 }' ~/.ssh/config
-}
\ No newline at end of file
+}
-#!/bin/bash
+#!/usr/bin/env bash
rm_svn(){
find $1 -name .svn -print0 | xargs -0 rm -rf
}
svn_add(){
svn status | grep '^\?' | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add
-}
\ No newline at end of file
+}
-#!/bin/bash
+#!/usr/bin/env bash
[[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && . $HOME/.tmuxinator/scripts/tmuxinator
-#!/bin/bash
+#!/usr/bin/env bash
_vagrant()
{
cur="${COMP_WORDS[COMP_CWORD]}"
-#!/bin/bash
+#!/usr/bin/env bash
# make sure virtualenvwrapper is enabled if available
[[ `which virtualenvwrapper.sh` ]] && . virtualenvwrapper.sh
-#!/bin/bash
+#!/usr/bin/env bash
# maintains a jump-list of the directories you actually use
#
-#!/bin/bash
+#!/usr/bin/env bash
# Load RVM, if you are using it
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
-#!/bin/bash
+#!/usr/bin/env bash
THEME_PROMPT_HOST='\H'
SCM_THEME_PROMPT_DIRTY=' ✗'
-#!/bin/bash
+#!/usr/bin/env bash
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
SCM_THEME_PROMPT_PREFIX=" |"
-#!/bin/bash
+#!/usr/bin/env bash
function prompt_command() {
PS1="${green}\u@\h ${blue}\T ${reset_color}${white}\w${reset_color}$(scm_prompt_info)\]${blue} →${bold_blue} ${reset_color} ";
}
-#!/bin/bash
+#!/usr/bin/env bash
function __ {
echo "$@"
-#!/bin/bash
+#!/usr/bin/env bash
# Theme inspired on:
# - Ronacher's dotfiles (mitsuhikos) - http://github.com/mitsuhiko/dotfiles/tree/master/bash/
-#!/bin/bash
+#!/usr/bin/env bash
SCM_THEME_PROMPT_DIRTY=''
SCM_THEME_PROMPT_CLEAN=''
SCM_GIT_CHAR="${bold_cyan}±${normal}"
-#!/bin/bash
+#!/usr/bin/env bash
source "$BASH_IT/themes/doubletime/doubletime.theme.bash"
-#!/bin/bash
+#!/usr/bin/env bash
source "$BASH_IT/themes/doubletime/doubletime.theme.bash"
-#!/bin/bash
+#!/usr/bin/env bash
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
SCM_THEME_PROMPT_PREFIX=" |"
-#!/bin/bash
+#!/usr/bin/env bash
#
# This theme was obviously inspired a lot by
#
-#!/bin/bash
+#!/usr/bin/env bash
# n0qorg theme by Florian Baumann <flo@noqqe.de>
## look-a-like
-#!/bin/bash
+#!/usr/bin/env bash
prompt_setter() {
# Save history
-#!/bin/bash
+#!/usr/bin/env bash
# based off of n0qorg
# looks like, if you're in a git repo:
-#!/bin/bash
+#!/usr/bin/env bash
# prompt themeing
-#!/bin/bash
+#!/usr/bin/env bash
#
# Based on 'bobby' theme with the addition of virtualenv_prompt
#
-#!/bin/bash
+#!/usr/bin/env bash
# zitron theme by Florian Baumann <flo@noqqe.de>
## git-theme