File: example.bash_profile

package info (click to toggle)
libtrash 2.4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 372 kB
  • ctags: 140
  • sloc: ansic: 1,910; perl: 346; makefile: 82
file content (20 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Include this in your ~/.bash_profile to enable libtrash every time you
# log in (or otherwise start a login shell)
LIBTRASH=/usr/lib/libtrash/libtrash.so

LIBTRASH_dest=$LIBTRASH
if test -L $LIBTRASH ; then
   LIBTRASH_dest="$(dirname $LIBTRASH)/$(ls -l "$LIBTRASH" | \
                                         sed -e 's/^.\+ -> //')"
fi

if test x${LD_PRELOAD+set} = x -a -f "$LIBTRASH_dest" ; then
   LD_PRELOAD="$LIBTRASH"
   export LD_PRELOAD
   if test x$0 = x-bash ; then
      exec bash ${1+"$@"}
   else
      exec $0 ${1+"$@"}
   fi
fi