Added readme
parent
9c7cd9aa00
commit
74fe8378bd
|
|
@ -0,0 +1 @@
|
||||||
|
.DS_Store
|
||||||
|
|
@ -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.
|
||||||
|
|
||||||
|
<pre><code>
|
||||||
|
git clone http://github.com/revans/bash-it.git
|
||||||
|
|
||||||
|
cp ~/.bash_profile ~/.bash_profile_original
|
||||||
|
cp template/bash_profile.bash-template ~/.bash_profile
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
## 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.
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue