You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
739 B
38 lines
739 B
4 years ago
|
# /etc/profile: system-wide profile file for the shell
|
||
|
|
||
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/var/bin
|
||
4 years ago
|
|
||
|
# set PATH so it includes user's private bin if it exists
|
||
|
if [ -d "/usr/local/bin" ]; then
|
||
4 years ago
|
PATH="/usr/local/bin:$PATH"
|
||
4 years ago
|
fi
|
||
|
|
||
3 years ago
|
# add neutrino's luaplugindir to PATH
|
||
|
PATH=$PATH:/usr/share/tuxbox/neutrino/luaplugins
|
||
|
|
||
4 years ago
|
if [ -z "$PS1" ]; then
|
||
|
if [ "`id -u`" -eq 0 ]; then
|
||
|
PS1='[\h] \w \# '
|
||
|
else
|
||
|
PS1='[\h] \w \$ '
|
||
|
fi
|
||
|
fi
|
||
4 years ago
|
|
||
4 years ago
|
export PATH PS1
|
||
|
|
||
4 years ago
|
if [ -d /etc/profile.d ]; then
|
||
|
for i in /etc/profile.d/*.sh; do
|
||
|
if [ -f $i -a -r $i ]; then
|
||
|
. $i
|
||
|
fi
|
||
|
done
|
||
|
unset i
|
||
|
fi
|
||
4 years ago
|
|
||
4 years ago
|
# add user's private modifications if it exists
|
||
|
if [ -e /var/etc/profile.local ]; then
|
||
|
. /var/etc/profile.local
|
||
|
elif [ -e /etc/profile.local ]; then
|
||
|
. /etc/profile.local
|
||
|
fi
|