From 74fe8378bd8f142799d22643c678c2a82f760490 Mon Sep 17 00:00:00 2001 From: Robert R Evans Date: Sat, 2 Oct 2010 12:15:56 -0700 Subject: [PATCH] Added readme --- .gitignore | 1 + README.md | 29 ++++++++++++++++++++++++++++ template/bash_profile.bash-template | 30 +++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 template/bash_profile.bash-template diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..ce08ef5 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Bash it + +Bash it is a mash up of my own bash commands and scripts, other bash stuff I have found and a shameless ripoff of oh-my-zsh. :) + +From what I remember, I've incorporated things I have found from the following: + +* oh-my-zsh (http://github.com/robbyrussell/oh-my-zsh) +* Steve Losh (http://stevelosh.com/) + +Includes some autocompletion tools, theming support, aliases, custom functions, and more. + +## Install + +Check a clone of this repo. You can view what a sample ~/.bash\_profile looks like in template/bash\_profile.bash-template. If you wanted to use that template, make sure to make a backup of your current ~/.bash\_profile file. + +

+git clone http://github.com/revans/bash-it.git
+
+cp ~/.bash_profile ~/.bash_profile_original
+cp template/bash_profile.bash-template ~/.bash_profile
+
+ +## Themes + +Currently, there is only 1 theme, bobby. There is a base.bash that includes various colors that can then be used to create custom themes. There is support for git in the prompt: showing what branch you're on, if you've committed locally or not, etc. I'm working on adding mercurial support as well. + +## Help out! + +Just like oh-my-zsh, bash it is meant for the community. If you have things to add, want to add a theme, etc. please fork this project and send me a pull request. \ No newline at end of file diff --git a/template/bash_profile.bash-template b/template/bash_profile.bash-template new file mode 100644 index 0000000..3dd62a2 --- /dev/null +++ b/template/bash_profile.bash-template @@ -0,0 +1,30 @@ +#!/bin/bash + +# Load RVM +[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm + +# Add rvm gems and nginx to the path +export PATH=$PATH:~/.gem/ruby/1.8/bin:/opt/nginx/sbin + +# Path to the bash it configuration +export BASH=$HOME/.bash_it + +# Lock and Load a custom theme file +# location /.bash_it/themes/ +export BASH_THEME='bobby' + +# Your place for hosting Git repos. I use this for private repos. +export GIT_HOSTING='git@git.domain.org' + +# Set my editor and git editor +export EDITOR="/usr/bin/mate -w" +export GIT_EDITOR='/usr/bin/mate -w' + +# Set the path nginx +export NGINX_PATH='/opt/nginx' + +# Don't check mail when opening terminal. +unset MAILCHECK + +# Load Bash It +source $BASH/bash_it.sh -- 2.17.1