-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.profile
More file actions
58 lines (47 loc) · 1.16 KB
/
Copy path.profile
File metadata and controls
58 lines (47 loc) · 1.16 KB
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
57
58
chmod 700 $HOME
if [[ $EUID -eq 0 ]]; then
umask 0077
else
umask 0022
fi
# ----------------------------------------------------------------
# Environment
if [ -h /system/bin/bootkali ]
then
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/system/xbin
fi
PATH=$HOME/bin:$PATH:/usr/local/sbin
if [ -d $HOME/opt ]
then
for DIR in $( ls $HOME/opt )
do
if [ -d ${HOME}/opt/${DIR} ]
then
PATH=${HOME}/opt/${DIR}:$PATH
fi
if [ -d ${HOME}/opt/${DIR}/bin ]
then
PATH=${HOME}/opt/${DIR}/bin:$PATH
fi
done
fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# ----------------------------------------------------------------
# Startup
mesg n
# Start xflux
if [ -n "$DISPLAY" ] && [ -x $HOME/bin/xflux ]
then
$HOME/bin/xflux -l 53.3 -g -6.3 -k 3400
fi
# Display fortunes
if ( which fortune > /dev/null 2>&1 ) && [ -d $HOME/usr/share/games/fortunes ]
then
$HOME/usr/share/games/fortunes/motd.sh
cat $HOME/etc/motd
elif ( which fortune > /dev/null 2>&1 )
then
echo ""
fortune
echo ""
fi