-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc_COPY
34 lines (22 loc) · 936 Bytes
/
bashrc_COPY
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
32
33
34
###--------------------------------------------
# This is fundamental to all other "_BT_GIT_*" env variables.
export _BT_GIT_REPOS_HERE="$HOME/billtorcaso-repos-here"
function repos() { cd $_BT_GIT_REPOS_HERE/$1; }
###--------------------------------------------
# Things related to my bash_functions repo
export _BT_BASH_REPO="$_BT_GIT_REPOS_HERE/bash_functions"
export _BT_BASH_FNS_FILES="$_BT_BASH_REPO/generic.bash_functions $_BT_BASH_REPO/bt.bash_functions"
export _BT_BASH_FNED_FILES="$_BT_BASH_REPO/bashrc_COPY $_BT_BASH_FNS_FILES"
function fnsrepo() { cd $_BT_BASH_REPO/$1; }
function fndef() { declare -f "$@"; }
function fns() {
for thing in $(echo $_BT_BASH_FNS_FILES)
do
[[ -r $thing ]] && source $thing
done
}
function fned() { vi $_BT_BASH_FNED_FILES "$@" && fns ; }
###--------------------------------------------
# Activate the definitions in other files
fns;
true