blob: c74668ccd38e4150ac05d6adde7512de2cd66bed [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
9# Library
10LIB="${BASH}/lib/*.bash"
11for config_file in $LIB
12do
13 source $config_file
14done
15
16# Tab Completion
17COMPLETION="${BASH}/completion/*.bash"
18for config_file in $COMPLETION
19do
20 source $config_file
21done
22
Robert R Evansa7d1ee02010-10-02 15:04:24 -070023unset config_file
Robert R Evans9c7cd9a2010-10-02 11:55:34 -070024# Plugins
25PLUGINS="${BASH}/plugins/*.bash"
26for config_file in $PLUGINS
27do
28 source $config_file
29done
30
31# Themes
32THEMES="${BASH}/themes/*.bash"
33for config_file in $THEMES
34do
35 source $config_file
36done
37
38# 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
52
53#
54# Custom Help
55
56function bash-it() {
57 echo "Welcome to Bash It!"
58 echo
59 echo "Here is a list of commands you can use to get help screens for specific pieces of Bash it:"
60 echo
61 echo " rails-help This will list out all the aliases you can use with rails."
62 echo " git-help This will list out all the aliases you can use with git."
63 echo
64}