-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
47 lines (37 loc) · 837 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
47
#
# .bashrc - per-shell startup stuff for bash via $ENV
#
#ident "@(#)HOME:.bashrc 37.2 22/09/06 12:17:52 (woods)"
# Assumptions:
# Files referenced:
#
# $HOME/.kshrc - sourced for common shell functions
# $HOME/.bashlocal - sourced, if it is readable
# Apple is stupid
#
export BASH_SILENCE_DEPRECATION_WARNING=1
if [ -z "$SHELL" ] ; then
export SHELL=$BASH
fi
# XXX this should not be necessary?
set -o monitor
# XXX not quite right, but near enough?
#
alias print=echo
alias whence="command -v"
. $HOME/.kshrc
# ancient-Bash-specific?
#
lastcmd ()
{
tr '[\001-\007]' '[\012*]' < ${HISTFILE} | \
tr '[\176-\377]' '[ *]' | \
egrep -v '^[ }#]|^$' | \
tail ${1+"$@"}
}
# xxx this is different than .localprofile in that it is only for
# interactive shells...
#
if [ -r $HOME/.bashlocal ] ; then
. $HOME/.bashlocal
fi