-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_functions
31 lines (29 loc) · 1.15 KB
/
bash_functions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## - a function file for commands that surpass aliases and run from scripts
#
# -- include private function -- #
function include_private_functions {
bash_private_functions_file="$HOME/.bash_functions_private"
if [ -f "${bash_private_functions_file}" ];then
source "${bash_private_functions_file}"
echo "Included: ${bash_private_functions_file}"
else
echo "Private functions file not found"
fi
}
function include_function_file {
if [ -f "${1}" ];then
source "${1}"
else
echo "File not found: ${1}"
fi
}
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_screen"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_git"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_mysql"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_find"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_grep"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_capistrano"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_tar"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_vim"
include_function_file "/$HOME/ioBashExtras/.io_bash_extras_security"
include_private_functions