You are not logged in.
Pages: 1
hi.
I made a fairly stupid mistake and nuked my /etc/profile . Can somebody please post theirs. Thanks.
Offline
I think it's best just to reinstall bash:
# /usr/bin/pacman -S bash
and answer yes to upgrading anyway
If you have trouble updating, here is mine:
#
# /etc/profile
#
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin"
export MANPATH="/usr/man:/usr/X11R6/man"
export LESSCHARSET="latin1"
export INPUTRC="/etc/inputrc"
export LESS="-R"
# Locale settings (find your locale with 'locale -a')
export LANG="en_US"
export LC_COLLATE="C"
export COLUMNS LINES
export PS1='[u@h W]$ '
export PS2='> '
umask 002
if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "rxvt" -o "$TERM" = "xterm-xfree86" ]; then
PROMPT_COMMAND='echo -ne "33]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}07"'
fi
# load profiles from /etc/profile.d
# (to disable a profile, just remove execute permission on it)
for profile in /etc/profile.d/*.sh; do
if [ -x $profile ]; then
. $profile
fi
done
unset profile
# End of file
Offline
arseome. that worked. thanks.
Offline
/etc/profile gone
Run and catch him quick !!!
Offline
Pages: 1