File: .profile

package info (click to toggle)
virtuoso-opensource 7.2.5.1+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 284,776 kB
  • sloc: ansic: 641,220; sql: 490,409; xml: 269,570; java: 83,893; javascript: 79,900; cpp: 36,927; sh: 31,648; cs: 25,702; php: 12,690; yacc: 10,227; lex: 7,601; makefile: 7,125; jsp: 4,523; awk: 1,697; perl: 1,013; ruby: 1,003; python: 326
file content (64 lines) | stat: -rwxr-xr-x 1,779 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
#  $Id$
#

HOME=`pwd`

# [ -z "$VIRTDEV_HOME" ] || exit
VIRTDEV_HOME=$HOME;
export VIRTDEV_HOME

PATH=".:$HOME/bin:/usr/local/bin:$PATH"
CDPATH=.:$HOME/libsrc:$HOME/binsrc:$HOME:$HOME/binsrc/samples:$HOME/binsrc/tests
CVSIGNORE='.AppleDouble *.exe *.lis *.obj *.olb *;* *.makeout'
LD_LIBRARY_PATH=$HOME/lib:DEFAULT

#You may use this one...
PS1='VIRTMAIN:\w\$ '

#...or if you mark different versions by YYMMDD date, try this...
#pwd | grep '^\([^0-9]*\)\([0-9][0-9]*\)\(.*\)$' > /dev/null && PS1=`pwd | sed 's/^\([^0-9]*\)\([0-9][0-9]*\)\(.*\)$/\2:WOW:\\\w\\\$ /'` || PS1='VIRTUOSO:\w\$ '

#...or you may try this for generic case...
#PS1=`pwd | sed 's/^\(.*\)home\(_*\)//g' | sed 's/virt/VIRT/g' | sed 's/dev/DEV/g' | sed 's/uoso/UOSO/g' | sed 's/cvs/CVS/g' | sed 's/\([a-z/]\)//g'`
#PS1="$PS1:\\w\\$ "

if [ -f "$HOME/CVS/Tag" ]
then
  PS1=`cat "$HOME/CVS/Tag" | cut -b 2-`'@\h:\w\$ '
else
  PS1='VIRTMAIN@\h:\w\$ '
fi

#If coming in from an xterm-debian, resolve down to ordinary "xterm"
env | grep 'TERM=xterm' && TERM=xterm

CVS_RSH=ssh
export MAINTAINER CVS_RSH TERM

#These two sets are to make visible in MC that we're in Virtdev
#MC_COLOR_TABLE="normal=,red:marked=,red:executable=,red:directory=,red:link=,red:device=,red:special=blue,red"
MC_COLOR_TABLE="normal=cyan,"

export MC_COLOR_TABLE

PORT=1111
if [ -f /home/staff/virtuoso_ports ] ; then
  {
    cat /home/staff/virtuoso_ports | grep $HOME: | sed 's/^\(.*\):\([0-9]\+\)$/\2/g' > .port
    PORT=`cat .port`
    rm .port
    [ -z "$PORT" ] && PORT=1111
    echo "PORT is set to $PORT"
  }
fi
export PORT

export PATH CDPATH CVSROOT CVSIGNORE UDBCINI LD_LIBRARY_PATH HOME ODBCINI JDK1 JDK2

#MONO_PATH=$HOME/binsrc/tests/biftest/tests
#export MONO_PATH

[ -s .profile.sysdep ] && . .profile.sysdep

umask 022