Robert R Evans | 76ed68d | 2010-10-02 12:29:17 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Robert R Evans | 9c7cd9a | 2010-10-02 11:55:34 -0700 | [diff] [blame] | 2 | # Initialize Bash It |
| 3 | |
| 4 | # Reload Library |
| 5 | alias reload='source ~/.bash_profile' |
| 6 | |
| 7 | # Load all files |
| 8 | |
| 9 | # Library |
| 10 | LIB="${BASH}/lib/*.bash" |
| 11 | for config_file in $LIB |
| 12 | do |
| 13 | source $config_file |
| 14 | done |
| 15 | |
| 16 | # Tab Completion |
| 17 | COMPLETION="${BASH}/completion/*.bash" |
| 18 | for config_file in $COMPLETION |
| 19 | do |
| 20 | source $config_file |
| 21 | done |
| 22 | |
Robert R Evans | a7d1ee0 | 2010-10-02 15:04:24 -0700 | [diff] [blame] | 23 | unset config_file |
Robert R Evans | 9c7cd9a | 2010-10-02 11:55:34 -0700 | [diff] [blame] | 24 | # Plugins |
| 25 | PLUGINS="${BASH}/plugins/*.bash" |
| 26 | for config_file in $PLUGINS |
| 27 | do |
| 28 | source $config_file |
| 29 | done |
| 30 | |
| 31 | # Themes |
| 32 | THEMES="${BASH}/themes/*.bash" |
| 33 | for config_file in $THEMES |
| 34 | do |
| 35 | source $config_file |
| 36 | done |
| 37 | |
| 38 | # Functions |
| 39 | FUNCTIONS="${BASH}/functions/*.bash" |
| 40 | for config_file in $FUNCTIONS |
| 41 | do |
| 42 | source $config_file |
| 43 | done |
| 44 | |
| 45 | # Custom |
| 46 | CUSTOM="${BASH}/custom/*.bash" |
| 47 | for config_file in $CUSTOM |
| 48 | do |
| 49 | source $config_file |
Robert R Evans | a7d1ee0 | 2010-10-02 15:04:24 -0700 | [diff] [blame] | 50 | done |
| 51 | |
| 52 | |
| 53 | # |
| 54 | # Custom Help |
| 55 | |
| 56 | function 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 | } |