Article View: gnu.bash.bug
Article #457Need Sample .bashrc files ...
From: Brian Fox
Date: Fri, 11 Aug 1989 00:13
Date: Fri, 11 Aug 1989 00:13
134 lines
3622 bytes
3622 bytes
Hi I'm a new bash user and I could really use a couple
of sample .bashrc files.
I hacked up my .cshrc file and some of it seems to work, but
alot of stuff must be more like the ksh.
Thanks in advance
--
Jim Apple WB1DOG
apple@nprdc.navy.mil
...}ucsd!nprdc!apple
xinsert
----------------------------------------
File: /usr/gnu/lib/Bash_profile
----------------------------------------
# Startup file for bash login shells.
#
default_dir=/usr/gnu/lib/
if [ "$PS1" ]; then
PS1='\u@\h(\#)$ '
ignoreeof=3
fi
LOGIN_SHELL=true
# If the user has her own init file, then use that one, else use the
# canonical one.
if [ -f ~/.bashrc ]; then
source ~/.bashrc
else if [ -f ${default_dir}Bashrc ]; then
source ${default_dir}Bashrc;
fi
fi
----------------------------------------
----------------------------------------
File: /usr/gnu/lib/Bashrc
----------------------------------------
# Bourne Again SHell init file.
#
# Files you make look like rw-rw-r
umask 002
# Don't make useless coredump files. If you want a coredump,
# say "ulimit -c unlimited" and then cause a segmentation fault.
ulimit -c 0
# Sometime, there are lots of places that one can find man pages.
export MANPATH=/usr/local/man:/usr/man
export TEXINPUTS=.:$HOME/bin/tex:$HOME/bin:/usr/lib/tex/macros
HOST=$(/bin/hostname)
# Where's the Gnu stuff at?
GNU=/usr/gnu/bin
X11=/usr/bin/X11
# Get the type of this machine.
if [ -x /bin/arch ]; then
MACH=`/bin/arch`
else
MACH=vax
GNU=$VAXGNU
fi
UTIL_PATH=$GNU:$X11
STANDARD_PATH=/usr/local/bin:/usr/ucb:/bin:/usr/bin:/usr/etc:/etc:/usr/games
if [ "$MY_PATH" = "" ]; then
MY_PATH=""
fi
if [ -d $HOME/bin/$MACH ]; then
MY_PATH=$MY_PATH:$HOME/bin/$MACH
fi
if [ -d $HOME/bin ]; then
MY_PATH=$MY_PATH:$HOME/bin
fi
PATH=.:$MY_PATH:$UTIL_PATH:$STANDARD_PATH
if [ "$PS1" ]; then
# Here are a couple of functions to make csh user's lives easier.
setenv () {
export $1="$2"
}
unsetenv () {
unset $*
}
# Set ignoreeof if you don't want EOF as the sole input to the shell to
# immediately signal a quit condition. This only happens at the start
# of a line if the line is empty, and you haven't just deleted a character
# with C-d. I turn this on in ~/.bash_profile so that only login shells
# have the right to be obnoxious.
# ignoreeof=
# Set auto_resume if you want TWENEX style behaviour for command names.
auto_resume=
# Set notify if you want to be asynchronously notified about background
# job completion.
notify=
# Make it so that failed `exec' commands don't flush this shell.
no_exit_on_failed_exec=
if [ ! "$LOGIN_SHELL" ]; then
PS1="\u@\h$ "
fi
HISTSIZE=256
MAILCHECK=60
# A couple of default aliases.
alias j='jobs -l'
alias po=popd
alias pu=pushd
alias ls='ls -F'
if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases
fi
fi
----------------------------------------
Technical Details
Message-ID:
<8908110013.AA04711@aurel.caltech.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!cica!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfoxReferences:
<3232@seashore.nprdc.arpa>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!cica!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox
From: bfox@AUREL.CALTECH.EDU (Brian Fox)
Newsgroups: gnu.bash.bug
Subject: Need Sample .bashrc files ...
Message-ID: <8908110013.AA04711@aurel.caltech.edu>
Date: 11 Aug 89 00:13:21 GMT
References: <3232@seashore.nprdc.arpa>
Reply-To: apple@bfox@aurel.caltech.edu.date.10.aug.89.22.44.37.gmt.from.nprdc
(James Apple),
San.Diego.Sender.bug-bash-request@prep.ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 134