You are not logged in.

#1 2005-04-07 14:31:29

jeezus84
Member
Registered: 2005-04-07
Posts: 14

/etc/profile gone

hi.

I made a fairly stupid mistake and nuked my /etc/profile . Can somebody please post theirs. Thanks.

Offline

#2 2005-04-07 14:44:25

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 287

Re: /etc/profile gone

I think it's best just to reinstall bash:

# /usr/bin/pacman -S bash

and answer yes to upgrading anyway smile

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

#3 2005-04-07 15:04:09

jeezus84
Member
Registered: 2005-04-07
Posts: 14

Re: /etc/profile gone

arseome. that worked. thanks.

Offline

#4 2005-04-07 17:19:28

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

Re: /etc/profile gone

/etc/profile gone


Run and catch him quick !!!

Offline

Board footer

Powered by FluxBB