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