add directory bin
This commit is contained in:
20
bin/old/bash/bash-1.05/examples/Bash_profile
Normal file
20
bin/old/bash/bash-1.05/examples/Bash_profile
Normal file
@@ -0,0 +1,20 @@
|
||||
# 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
|
||||
|
||||
76
bin/old/bash/bash-1.05/examples/Bashrc
Normal file
76
bin/old/bash/bash-1.05/examples/Bashrc
Normal file
@@ -0,0 +1,76 @@
|
||||
# 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 [ "$HOSTTYPE" = "sony" ]; then STANDARD_PATH=STANDARD_PATH:/usr/sony/bin; fi
|
||||
|
||||
if [ -d $HOME/bin/$HOSTTYPE ]; then
|
||||
MY_PATH=$HOME/bin/$HOSTTYPE
|
||||
fi
|
||||
|
||||
if [ -d $HOME/bin ]; then
|
||||
MY_PATH=$MY_PATH:$HOME/bin
|
||||
fi
|
||||
|
||||
PATH=.:$MY_PATH:$UTIL_PATH:$STANDARD_PATH
|
||||
|
||||
# If running interactively, then:
|
||||
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
|
||||
36
bin/old/bash/bash-1.05/examples/csh-compat
Normal file
36
bin/old/bash/bash-1.05/examples/csh-compat
Normal file
@@ -0,0 +1,36 @@
|
||||
# C-shell compatabilty package.
|
||||
# setenv VAR VALUE
|
||||
function setenv () {
|
||||
export $1="$2"
|
||||
}
|
||||
|
||||
function unsetenv () {
|
||||
unset $1
|
||||
}
|
||||
|
||||
function alias () {
|
||||
local name=$1
|
||||
shift
|
||||
local value="$*"
|
||||
|
||||
if [ "$name" = "" ]; then
|
||||
builtin alias
|
||||
elif [ "$value" = "" ]; then
|
||||
builtin alias $name
|
||||
else
|
||||
builtin alias $name="$value"
|
||||
fi
|
||||
}
|
||||
|
||||
# Can't write foreach yet. Need pattern matching, and a few extras.
|
||||
function foreach () {
|
||||
echo 'Can'\''t do `foreach'\'' yet. Type "help for".'
|
||||
}
|
||||
|
||||
# Make this work like csh's. Special case "term" and "path".
|
||||
#set () {
|
||||
#}
|
||||
|
||||
chdir () {
|
||||
builtin cd $*
|
||||
}
|
||||
Reference in New Issue
Block a user