-
Notifications
You must be signed in to change notification settings - Fork 13
/
.bashenv
30 lines (22 loc) · 798 Bytes
/
.bashenv
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
#!/bin/bash
#
# Adam's .bashenv
#
# to simulate .zshenv
#
# $Id$
# .bashenv is invoked by all interactive non-csh-style shells via
# .profile, and hopefully all non-interactive shells too, but don't
# bet on the latter; it depends on whether ENV or BASH_ENV were set,
# and the version of bash. ~/.ssh/environment can set it if ssh is
# involved. As a result, assume the lowest common denominator, e.g.
# old ksh's don't even support ~ expansion, or 'source' (use '.'
# instead).
: .bashenv starts # for debugging with -x
# Allow disabling of all meddling with the environment
[ -n "$INHERIT_ENV" ] && return 0
shell=bash
[ -r ${ZDOTDIR:-$HOME}/.shared_env ] && . ${ZDOTDIR:-$HOME}/.shared_env
sh_load_status .bashenv
. $ZDOT_RUN_HOOKS .bashenv.d
: .bashenv ends # for debugging with -x