12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #!/bin/bash
-
- ######################################################
- ### things to do AFTER host/user-specific settings ###
- ######################################################
-
- ### .... ###
- ### BASH ###
- ### '''' ###
-
- __make_ps1d() {
- local rvfile="/var/tmp/bash-rv/$$.lastrv"
- local lastrv=$(cat $rvfile)
- if [ $lastrv -gt 0 ];
- then
- echo "$lastrv"
- else
- echo ""
- fi
- rm $rvfile
- }
-
- __save_rv() {
- echo $1 > /var/tmp/bash-rv/$$.lastrv
- }
-
- make_ps1() {
- # these functions must be already defined by ~/.bash/user
|