root/home/.profile

Revision 257, 1.3 kB (checked in by conrad, 5 months ago)

add $HOME/usr/lib/pkgconfig to PKG_CONFIG_PATH

Line 
1 # .profile
2
3 source ~/bin/functions
4
5 # Edit a blog entry file of name YYYYMMDD.txt
6 alias log="vi `date +%Y%m%d`.txt"
7
8 alias man="LC_ALL=C man"
9
10 if [ `uname` == "Darwin" ]; then
11     LOCALPREFIX=/opt/local
12 else
13     LOCALPREFIX=/usr/local
14 fi
15
16 export PKG_CONFIG_PATH=$HOME/usr/lib/pkgconfig:$PKG_CONFIG_PATH:$LOCALPREFIX/lib/pkgconfig
17
18 export CVS_RSH=ssh
19
20 # enable color support of ls and also add handy aliases
21 if [ `uname` != "Darwin" ]; then
22   if [ "$TERM" != "dumb" ]; then
23     eval `dircolors -b`
24     alias ls='ls --color=auto'
25     #alias dir='ls --color=auto --format=vertical'
26     #alias vdir='ls --color=auto --format=long'
27   fi
28 fi
29
30 # some more ls aliases
31 #alias ll='ls -l'
32 #alias la='ls -A'
33 #alias l='ls -CF'
34
35 # Ensure the default editor is sane
36 export EDITOR=vi
37
38 # add /usr/local/bin or /opt/local/bin to PATH
39 PATH=$LOCALPREFIX/bin:$PATH
40
41 # add ccache wrappers to PATH if they are installed
42 if [ -d /usr/lib/ccache ] ; then
43     PATH=/usr/lib/ccache:$PATH
44 fi
45
46 # set PATH so it includes user's private bin if it exists
47 if [ -d ~/bin ] ; then
48     PATH=~/bin:"${PATH}"
49 fi
50 # set PATH so it includes user's private usr/bin if it exists
51 if [ -d ~/usr/bin ] ; then
52     PATH=~/usr/bin:"${PATH}"
53 fi
54
55 export PATH
56
57 # do the same with MANPATH
58 if [ -d ~/man ]; then
59     MANPATH=~/man${MANPATH:-:}
60     export MANPATH
61 fi
Note: See TracBrowser for help on using the browser.