blob: 7717f5c49a2fd58a2ee2662dd61c7a35da6b392b [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
54#
55# Custom Help
56
57function bash-it() {
58 echo "Welcome to Bash It!"
59 echo
60 echo "Here is a list of commands you can use to get help screens for specific pieces of Bash it:"
61 echo
62 echo " rails-help This will list out all the aliases you can use with rails."
63 echo " git-help This will list out all the aliases you can use with git."
Robert R Evans5e0e86f2010-10-02 15:29:23 -070064 echo " aliases-help Generic list of aliases."
65
Robert R Evansa7d1ee02010-10-02 15:04:24 -070066 echo
67}