Can anyone please kindly post the default .bashrc file that opensuse11.4 ships with?

I tried to edit the setting for PS1, and accidentally typed

echo "PS1='\u@\h:\W >'" > .bashrc

and overwrote the file

can anyone please post their .bashrc here?
i never even took a look at the opensuse .bashrc, so no idea if there was anything important in it :frowning:

Here you go


# Sample .bashrc for SuSE Linux
# Copyright (c) SuSE GmbH Nuernberg

# There are 3 different types of shells in bash: the login shell, normal shell
# and interactive shell. Login shells read ~/.profile and interactive shells
# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all
# settings made here will also take effect in a login shell.
#
# NOTE: It is recommended to make language settings in ~/.profile rather than
# here, since multilingual X sessions would not work properly if LANG is over-
# ridden in every subshell.

# Some applications read the EDITOR variable to determine your favourite text
# editor. So uncomment the line below and enter the editor of your choice :-)
#export EDITOR=/usr/bin/vim
#export EDITOR=/usr/bin/mcedit

# For some news readers it makes sense to specify the NEWSSERVER variable here
#export NEWSSERVER=your.news.server

# If you want to use a Palm device with Linux, uncomment the two lines below.
# For some (older) Palm Pilots, you might need to set a lower baud rate
# e.g. 57600 or 38400; lowest is 9600 (very slow!)
#
#export PILOTPORT=/dev/pilot
#export PILOTRATE=115200

test -s ~/.alias && . ~/.alias || true

Thank you very much :smiley:

No problem :slight_smile:

On 2011-03-12 03:06, BeyondSora wrote:

> and overwrote the file
>
> can anyone please post their .bashrc here?

No need. Create a new user, and copy his file over :slight_smile:

Or find where the original is. It is used by useradd, so the manual
mentions it.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

oh NICE, :stuck_out_tongue:
just learned one more thing about opensuse xD


cp /etc/skel/.bashrc ~/.bashrc

On 2011-03-12 05:06, aneyer wrote:
>
> Code:
> --------------------
>
> cp /etc/skel/.bashrc ~/.bashrc
>
> --------------------

Hey! That was what I was trying him to figure out for himself. You don’t
learn if you are told the answer without searching for it first.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)