Thread View: gnu.bash.bug
2 messages
2 total messages
Started by James Apple
Thu, 10 Aug 1989 22:44
Need Sample .bashrc files ...
Author: James Apple
Date: Thu, 10 Aug 1989 22:44
Date: Thu, 10 Aug 1989 22:44
13 lines
653 bytes
653 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
Need Sample .bashrc files ...
Author: 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
----------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads