blob: b5880596acb3eba7e69ae3451566498d6401a6cf [file] [log] [blame]
Robert R Evans76ed68d2010-10-02 12:29:17 -07001#!/bin/bash
Robert R Evans9c7cd9a2010-10-02 11:55:34 -07002# Initialize Bash It
3
4# Reload Library
5alias reload='source ~/.bash_profile'
6
7# Load all files
8
Robert R Evans070107a2010-10-02 15:23:57 -07009# Themes
10THEMES="${BASH}/themes/*.bash"
11for config_file in $THEMES
12do
13 source $config_file
14done
15
Robert R Evans9c7cd9a2010-10-02 11:55:34 -070016# Library
17LIB="${BASH}/lib/*.bash"
18for config_file in $LIB
19do
20 source $config_file
21done
22
23# Tab Completion
24COMPLETION="${BASH}/completion/*.bash"
25for config_file in $COMPLETION
26do
27 source $config_file
28done
29
Robert R Evansa7d1ee02010-10-02 15:04:24 -070030unset config_file
Robert R Evans9c7cd9a2010-10-02 11:55:34 -070031# Plugins
32PLUGINS="${BASH}/plugins/*.bash"
33for config_file in $PLUGINS
34do
35 source $config_file
36done
37
Robert R Evans9c7cd9a2010-10-02 11:55:34 -070038# Functions
39FUNCTIONS="${BASH}/functions/*.bash"
40for config_file in $FUNCTIONS
41do
42 source $config_file
43done
44
45# Custom
46CUSTOM="${BASH}/custom/*.bash"
47for config_file in $CUSTOM
48do
49 source $config_file
Robert R Evansa7d1ee02010-10-02 15:04:24 -070050done
51
Robert R Evans70c3b522010-10-03 11:50:22 -070052export PS1=$PROMPT
Robert R Evansa7d1ee02010-10-02 15:04:24 -070053
Robert R Evansc9da0862010-10-06 17:27:55 -070054
55# Adding Support for other OSes
56PREVIEW="less"
57[ -s /usr/bin/gloobus-preview ] && PREVIEW="gloobus-preview"
58[ -s /Applications/Preview.app ] && PREVIEW="/Applications/Preview.app"
59
60
Robert R Evansa7d1ee02010-10-02 15:04:24 -070061#
62# Custom Help
63
64function bash-it() {
65 echo "Welcome to Bash It!"
66 echo
67 echo "Here is a list of commands you can use to get help screens for specific pieces of Bash it:"
68 echo
69 echo " rails-help This will list out all the aliases you can use with rails."
70 echo " git-help This will list out all the aliases you can use with git."
Robert R Evans5e0e86f2010-10-02 15:29:23 -070071 echo " aliases-help Generic list of aliases."
72
Robert R Evansa7d1ee02010-10-02 15:04:24 -070073 echo
74}