123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #!/bin/bash
-
- ######################################################
- ### things to do AFTER host/user-specific settings ###
- ######################################################
-
- ### .... ###
- ### BASH ###
- ### '''' ###
-
- __make_ps1d() {
- local rvfile="/var/tmp/bash-rv/$$.lastrv"
- local lastrv=$(cat $rvfile)
- local do_rm=false
- test "$1" == "-r" && do_rm=true
- if [ 0$lastrv -gt 0 ];
- then
- echo "!$lastrv!"
- else
- echo ""
- fi
- $do_rm && rm -f $rvfile
- }
-
- __save_rv() {
- local rvfile="/var/tmp/bash-rv/$$.lastrv"
- [ -w ${rvfile%
|