-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
39 lines (31 loc) · 1.36 KB
/
.bash_profile
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
export LANG='en_US.utf8'
# kill WINDOWS' PATH inheritance, but MUST set in ControlPanel->System->Environment
# see logic in /etc/profile via CYGWIN_NOWINPATH
# CAC/PIF card support
#FIXME paths should come from bashrc_`uname`, not hard-coded here
#case ${OSTYPE:-`uname`} in
# [lL]inux*)
# : ${OPENSC_LIB:=/usr/lib/`uname -m`-linux-gnu/opensc-pkcs11.so} ;;
# cygwin|CYGWIN_*)
# # MSI doesn't allow tailoring path
# : ${OPENSC_LIB:=`convert_path "$PROGRAMFILES/OpenSC Project/OpenSC/pkcs11/opensc-pkcs11.dll"`} ;;
## [dD]arwin*)
# : ${OPENSC_LIB:=/usr/local/lib/opensc-pkcs11.so}
#esac
#[ -f "$OPENSC_LIB" -a -n "$SSH_AUTH_SOCK" ] && ssh-add -s "$OPENSC_LIB" 2>/dev/null
for f in ${BASH_SOURCE}.local /etc/profile.d/*.sh; do
[ -s "$f" ] || continue
#badly written scripts abound. ignoring...
source "$f" || { >&2 echo -e "ERROR\tRC=$? during $f"; }
done
#TODO? detect inside SSH session; [ -n "$SSH_CONNECTION" ]
if [ -z "$SSH_AUTH_SOCK" ] && type -p ssh-agent >/dev/null; then
eval `ssh-agent ${SSH_AGENT_ARGS:-${BASH_VERSION:+ -s}}`
[ -n "$SSH_AGENT_PID" ] && trap "kill -9 $SSH_AGENT_PID" EXIT
fi
# Amazon Linux family doesn't support '-q' or much of anything
[ -S "$SSH_AUTH_SOCK" ] && ssh-add 2>/dev/null
# alt: ssh-add -k (for keys); ssh-add -C (for certs)
# self-detects if interactive
source "$HOME"/.bashrc
# vim: expandtab:ts=4:sw=4