blob: 5736f8936dbf53bb75e6fac8ab614e276e7190a6 [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
Robert R Evans79e50292010-10-12 14:14:20 -07007# Load the framework
Robert R Evans9c7cd9a2010-10-02 11:55:34 -07008
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 Evans9c7cd9a2010-10-02 11:55:34 -070030# Plugins
31PLUGINS="${BASH}/plugins/*.bash"
32for config_file in $PLUGINS
33do
34 source $config_file
35done
36
Robert R Evans2010f012010-10-10 09:24:19 -070037# Aliases
38FUNCTIONS="${BASH}/aliases/*.bash"
Robert R Evans9c7cd9a2010-10-02 11:55:34 -070039for config_file in $FUNCTIONS
40do
41 source $config_file
42done
43
44# Custom
45CUSTOM="${BASH}/custom/*.bash"
46for config_file in $CUSTOM
47do
48 source $config_file
Robert R Evansa7d1ee02010-10-02 15:04:24 -070049done
50
Robert R Evans2010f012010-10-10 09:24:19 -070051
52unset config_file
Robert R Evans70c3b522010-10-03 11:50:22 -070053export PS1=$PROMPT
Robert R Evansa7d1ee02010-10-02 15:04:24 -070054
Robert R Evansc9da0862010-10-06 17:27:55 -070055
56# Adding Support for other OSes
57PREVIEW="less"
58[ -s /usr/bin/gloobus-preview ] && PREVIEW="gloobus-preview"
59[ -s /Applications/Preview.app ] && PREVIEW="/Applications/Preview.app"
60
61
Robert R Evansa7d1ee02010-10-02 15:04:24 -070062#
63# Custom Help
64
65function bash-it() {
66 echo "Welcome to Bash It!"
67 echo
68 echo "Here is a list of commands you can use to get help screens for specific pieces of Bash it:"
69 echo
70 echo " rails-help This will list out all the aliases you can use with rails."
71 echo " git-help This will list out all the aliases you can use with git."
Mark Szymanskie6fb7032010-10-31 15:32:22 -050072 echo " todo-help This will list out all the aliases you can use with todo.txt-cli"
Robert R Evans5e0e86f2010-10-02 15:29:23 -070073 echo " aliases-help Generic list of aliases."
Robert R Evansa7d1ee02010-10-02 15:04:24 -070074 echo
Mark Szymanskie6fb7032010-10-31 15:32:22 -050075}