-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
36 lines (29 loc) · 930 Bytes
/
.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
# Customise the shell environment for login sessions.
## Set default file permissions.
umask 0027
## Source ~/.shrc in every subshell.
if [ -f "${HOME}/.shrc" ] ; then
export ENV="$HOME/.shrc"
fi
return
##TODO Determine a reliable way to ensure that .shrc is sourced by shells other
# than sh.
# Ensure that ~/.shrc is sourced if running under Bash and other shells.
# This file, .profile, is sourced at login by sh, ksh, and bash. Other shells,
# such as zsh, do not source .profile, but can be made to do so by creating a
# simlink to this file, i.e.:
#
# cd; ln .profile .zshrc
# See <http://stackoverflow.com/q/5166657/623518> and
# <http://stackoverflow.com/q/3327013/623518>.
if test -n "${BASH_VERSION}" ; then
is=bash
elif test -n "${ZSH_VERSION}" ; then
is=zsh
elif test -n "${ERRNO}" ; then
is=ksh
elif test "${PS3}" = "" ; then
is=sh
else
echo "Unable to determine shell type."
fi