i-bash/examples/startup-files/Bashrc

71 lines
1.7 KiB
Bash
Raw Normal View History

1996-08-26 18:22:31 +00:00
# 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
# Sometimes, there are lots of places that one can find tex inputs.
export TEXINPUTS=.:$HOME/bin:/usr/lib/tex/inputs:/usr/local/lib/tex/inputs
# Where's the Gnu stuff at?
GNU=/usr/gnu/bin
X11=/usr/bin/X11
UTIL_PATH=$GNU:$X11
STANDARD_PATH=/usr/local/bin:/usr/ucb:/bin:/usr/bin:/usr/etc:/etc:/usr/games
if [ -d $HOME/bin/$HOSTTYPE ]; then
1996-12-23 17:02:34 +00:00
MY_PATH=$HOME/bin/$HOSTTYPE
1996-08-26 18:22:31 +00:00
fi
if [ -d $HOME/bin ]; then
1996-12-23 17:02:34 +00:00
MY_PATH=$MY_PATH:$HOME/bin
1996-08-26 18:22:31 +00:00
fi
if [ -d /usr/hosts ]; then
1996-12-23 17:02:34 +00:00
STANDARD_PATH=$STANDARD_PATH:/usr/hosts
1996-08-26 18:22:31 +00:00
fi
PATH=.:$MY_PATH:$UTIL_PATH:$STANDARD_PATH
1996-12-23 17:02:34 +00:00
# If not running interactively, then return
if [ -z "$PS1" ]; then
return
fi
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
# 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.
# set -o ignoreeof
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
# Set auto_resume if you want to resume on "emacs", as well as on
# "%emacs".
auto_resume=exact
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
# Set notify if you want to be asynchronously notified about background
# job completion.
set -o notify
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
# Make it so that failed `exec' commands don't flush this shell.
shopt -s execfail
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
if [ -z "$LOGIN_SHELL" ]; then
PS1="\u@\h\$ "
fi
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
HISTSIZE=256
MAILCHECK=60
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
# A couple of default aliases.
alias j='jobs -l'
alias po=popd
alias pu=pushd
alias ls='ls -F'
1996-08-26 18:22:31 +00:00
1996-12-23 17:02:34 +00:00
[ -f ~/.bash_aliases ] && . ~/.bash_aliases