diff options
author | Jari Aalto <jari.aalto@cante.net> | 1996-12-23 17:02:34 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:49 +0000 |
commit | ccc6cda312fea9f0468ee65b8f368e9653e1380b (patch) | |
tree | b059878adcfd876c4acb8030deda1eeb918c7e75 /examples/startup-files/bashrc | |
parent | 726f63884db0132f01745f1fb4465e6621088ccf (diff) | |
download | android_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.tar.gz android_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.tar.bz2 android_external_bash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.zip |
Imported from ../bash-2.0.tar.gz.
Diffstat (limited to 'examples/startup-files/bashrc')
-rw-r--r-- | examples/startup-files/bashrc | 55 |
1 files changed, 24 insertions, 31 deletions
diff --git a/examples/startup-files/bashrc b/examples/startup-files/bashrc index 5363e58..069e8be 100644 --- a/examples/startup-files/bashrc +++ b/examples/startup-files/bashrc @@ -1,35 +1,35 @@ -if [ "$PS1" != "" ] ; then +if [ -z "$PS1" ]; then + return +fi -if [ -f /unix ] ; then +# bogus +if [ -f /unix ] ; then alias ls='/bin/ls -CF' - alias ll='/bin/ls -lCF' - alias dir='/bin/ls -bCalF' else alias ls='/bin/ls -F' - alias ll='/bin/ls -lF' - alias dir='/bin/ls -balF' fi +alias ll='ls -l' +alias dir='ls -ba' alias ss="ps -aux" -alias mail=/usr/ucb/mail -alias dot='ls .[a-zA-Z0-9]*' -alias mroe=more -alias pwd='echo $PWD' -alias pdw='echo $PWD' -alias news="xterm -g 80x45 -e rn -e &" -alias back='cd $OLDPWD' -alias manroff="nroff /usr/lib/tmac/tmac.an.4.3" -alias laser="lpr -Palw2" -alias lw="lpr -Palw2" +alias dot='ls .[a-zA-Z0-9_]*' +alias news="xterm -g 80x45 -e trn -e -S1 -N &" + alias c="clear" alias m="more" alias j="jobs" +# common misspellings +alias mroe=more +alias pdw=pwd + +hash -p /usr/bin/mail mail + if [ -z "$HOST" ] ; then - export HOST=`hostname` + export HOST=${HOSTNAME} fi -history_control=ignoredups +HISTIGNORE="[ ]*:&:bg:fg" psgrep() { @@ -57,10 +57,14 @@ term() tset } +xtitle () +{ + echo -n -e "\033]0;$*\007" +} + cd() { - builtin cd $* - xtitle $HOST: $PWD + builtin cd "$@" && xtitle $HOST: $PWD } bold() @@ -126,14 +130,3 @@ function chmog() chgrp $3 $4 fi } - -# -# Source kshenv for ksh-compatibility definitions -# - -if [ -f ~/.kshenv ] ; then - . ~/.kshenv -fi - -fi -#end of .bashrc |