-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
46 lines (44 loc) · 976 Bytes
/
.bashrc
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
35
36
37
38
39
40
41
42
43
44
45
46
### ZSH COMPATIBLE
# /usr/local/bin/brishz.dash bello
## @duplicateCode/jhsd99wiw3i3hehiajh:
if test -z "$NIGHTDIR" ; then
NIGHTDIR=~/scripts # @hardcoded bash has no way of determining this by itself
if ! test -d "$NIGHTDIR" ; then
unset NIGHTDIR
echo "NIGHTDIR not found"
fi
fi
##
source "$NIGHTDIR"/zshlang/basic/conditions.zsh
##
export TERM=xterm-256color # @surprise
##
if isBash ; then
if (( BASH_VERSINFO[0] >= 5 )) ; then
shopt -s globstar
fi
fi
function run-on-each() {
local i98765
for i98765 in "${@:2}"
do
"$1" "$i98765"
done
}
alias re=run-on-each
function addToPATH {
export PATH="$1:$PATH"
}
##
source ~/.shared.sh
### Interactive
if isI ; then
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
##
# This takes a whole second to load
# [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
##
fi
##
BASHRC_LOADED=y