-
Notifications
You must be signed in to change notification settings - Fork 1
/
.profile
56 lines (43 loc) · 1.24 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Shell options
set -o braceexpand >/dev/null 2>&1
set -o notify >/dev/null 2>&1
alias have='command -v 2>&1 >/dev/null'
# Fedora: Load /etc/bashrc as advised
have yum && [ -f /etc/bashrc ] && . /etc/bashrc
# Load connected files
for i in env aliases prompt functions tmp; do
i=~/.files/$i.sh
[ -r "$i" ] || continue
if [ "$ZSH_VERSION" ]; then
emulate sh -c '(){ typeset -h path; . "$i"; }'
else
. "$i"
fi
done
# Bail if running non-interactively
case $- in *i*) ;; *) return 0 ;; esac
# Silence nag from macOS >=10.15 about using bash(1)
if [ "`uname -s`" = Darwin ]; then
export BASH_SILENCE_DEPRECATION_WARNING=1
# Initialise TTY
elif [ -x /usr/bin/tset ]; then
case $DISPLAY in *?*) xset -b;; esac
if [ "$XTERM_VERSION" ]; then
eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM`
else
eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM`
fi
fi
# Make less(1) more helpful when reading non-binary stuff
if [ -x /usr/bin/lesspipe ]; then
eval "`SHELL=/bin/sh lesspipe`"
fi
# Ensure ^T is used for sending SIGINFO
stty status "`printf '\x14'`" 2>/dev/null
# ksh(1) keybindings
case ${SHELL##*/} in ksh)
bind ^K=clear-screen
bind ^L=
;; esac
# Enable this last so it doesn't screw with startup code
set -o pipefail >/dev/null 2>&1