public
Description: My dotfiles
Homepage: http://ciaranm.wordpress.com/
Clone URL: git://github.com/ciaranm/dotfiles-ciaranm.git
ciaranm (author)
Wed Oct 28 14:03:39 -0700 2009
commit  355da03bb7af3028ed4dcf1005ca57daa011a194
tree    192f9c9cca3d775900b4624413559e0eb4962a01
parent  fa0c5aedea80320c231d9f5102486f2013de72fe
dotfiles-ciaranm / bashrc
100644 613 lines (528 sloc) 15.767 kb
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
########################################################################
# Evil bash settings file for Ciaran McCreesh
#
# Not many comments here, you'll have to guess how it works. Note that
# I use the same .bashrc on Linux, IRIX and Slowaris, so there's some
# strange uname stuff in there.
#
########################################################################
 
shopt -s extglob
 
# {{{ Locale stuff
eval unset ${!LC_*} LANG
export LANG="en_GB.UTF-8"
export LC_COLLATE="C"
# }}}
 
# {{{ timezone
if [[ -z "${TZ}" ]] ; then
    export TZ=Europe/London
fi
# }}}
 
# {{{ System info
if [[ -z "${!cache_uname_*}" ]] ; then
    cache_uname_s=$(uname -s 2>&1 || echo "Linux" )
    cache_uname_m=$(uname -m 2>&1 || echo "i686" )
    case "${cache_uname_m}" in
        i?86)
            cache_gentoo_arch=x86
            ;;
        sparc*)
            cache_gentoo_arch=sparc
            ;;
        *)
            cache_gentoo_arch=${cache_uname_m}
            ;;
    esac
fi
# }}}
 
# {{{ Core
ulimit -c0
# }}}
 
# {{{ Terminal Settings
case "${TERM}" in
    xterm*)
        export TERM=xterm-256color
        cache_term_colours=256
        ;;
    screen)
        cache_term_colours=256
        ;;
    dumb)
        cache_term_colours=2
        ;;
    *)
        cache_term_colours=16
        ;;
esac
 
case "${TERM}" in
    xterm*)
        PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
        ;;
    screen)
        PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
        ;;
esac
# }}}
 
# {{{ Path
if [[ -n "${PATH/*$HOME\/bin:*/}" ]] ; then
    export PATH="$HOME/bin:$PATH"
fi
 
if [[ -n "${PATH/*\/usr\/local\/bin:*/}" ]] ; then
    export PATH="/usr/local/bin:$PATH"
fi
 
if [[ -n "${PATH/\/sbin:*/}" ]] ; then
    export PATH="$PATH:/sbin"
fi
 
if [[ -n "${PATH/\/usr\/sbin:*/}" ]] ; then
    export PATH="$PATH:/usr/sbin"
fi
 
# }}}
 
# {{{ X
if [[ -z "${XSESSION}" ]] ; then
    case "${HOSTNAME:-$(hostname )}" in
        snowmobile*)
            export XSESSION=awesome
        ;;
 
        *)
            export XSESSION=fluxbox
        ;;
    esac
fi
# }}}
 
# {{{ Keychain
if [[ -z "${SSH_AGENT_PID}" ]] && type keychain &>/dev/null ; then
    eval $(keychain --quiet --eval id_dsa | sed -e 's,;,\n,g' )
fi
# }}}
 
# {{{ Pager
if [[ -f /usr/bin/less ]] ; then
    export PAGER=less
    export LESS="--ignore-case --long-prompt"
fi
if [[ -f /usr/bin/vimpager ]] ; then
    export PAGER=vimpager
    export MANPAGER=vimmanpager
elif [[ -f /usr/share/vim/vim63/macros/less.sh ]] ; then
    export PAGER="/usr/share/vim/vim63/macros/less.sh"
elif [[ -f /usr/share/vim/vim70aa/macros/less.sh ]] ; then
    export PAGER="/usr/share/vim/vim70aa/macros/less.sh"
else
    export MANPAGER="LANG=C less -r"
fi
alias page=$PAGER
# }}}
 
# {{{ mozilla
export MOZILLA_NEWTYPE=tab
# }}}
 
# {{{ ls, pushd etc
if [[ -f /etc/DIR_COLORS ]] ; then
    if [[ ${cache_term_colours} -ge 8 ]] ; then
        eval $(dircolors -b /etc/DIR_COLORS )
        alias ls="ls --color=if-tty"
        alias ll="ls --color=if-tty -l -h"
    else
        alias ll="ls -l -h"
    fi
elif [[ "${cache_uname_s}" == "FreeBSD" ]] ; then
    export CLICOLOR="yes"
    export LSCOLORS=Gxfxcxdxbxegedabagacad
    alias ll="ls -l -h"
else
    alias ll="ls -l"
fi
 
alias pd="pushd"
alias pp="popd"
# }}}
 
# {{{ Completion, history
for a in /etc/profile.d/bash-completion{,.sh} ; do
    if [[ -f "${a}" ]] ; then
        source "${a}"
        break
    fi
done
export COMP_WORDBREAKS=${COMP_WORDBREAKS/:/}
 
export FIGNORE='~'
 
export HISTCONTROL=ignorespace:ignoredups
export HISTFILESIZE=50000
export HISTSIZE=50000
# }}}
 
# {{{ CVS
alias cu="cvs upd"
# }}}
 
# {{{ SVN
[[ -d ${HOME}/svn ]] && svn_repo_dir=${HOME}/svn
alias svu="svn update"
alias svs="svn status"
alias svc="svn commit"
alias sva="svn add"
alias svar="svn status | grep '^\?' | cut -d\ -f2- | xargs svn add"
svnew() {
    [[ -z "$1" ]] && ( echo "need a parameter" ; return 1 )
    svnadmin create ${HOME}/svn/$1 && \
        svn checkout file://${HOME}/svn/$1
}
# }}}
 
# {{{ git
alias gis="git status | grep --color=never '^[^a-z]\+\(new file:\|modified:\)' |
cut -d'#' -f2-"
# }}}
 
# {{{ RSYNC
alias ssync="rsync --rsh=ssh"
alias ssyncr="rsync --rsh=ssh --recursive --verbose --progress"
# }}}
 
# {{{ Random aliases
alias lib="telnet eleanor.lib.gla.ac.uk"
 
grab() {
    sudo chown -R ${USER} ${1:-.}
}
 
mkcd() {
    mkdir $1 && cd $1
}
 
qcd() {
    cd $1 2>/dev/null
}
 
fcd() {
    qcd ~/$1 || qcd ~/work/$1 || qcd ~/cvs/$1 || ecd $1
}
 
alias hmake="hilite make"
alias hmakej="hilite make -j"
alias clean="rm *~"
 
vgm() {
    valgrind -q --tool=memcheck --leak-check=yes \
        $([[ -f misc/valgrind-suppress ]] && \
            echo --suppressions=misc/valgrind-suppress ) \
        "$@"
}
 
mktar() {
    tar jcvf "${1%%/}.tar.bz2" "${1%%/}/"
}
 
makepasswords() {
    # suggest a bunch of possible passwords. not suitable for really early perl
    # versions that don't do auto srand() things.
    perl <<EOPERL
        my @a = ("a".."z","A".."Z","0".."9",(split //, q{#@,.<>$%&()*^}));
        for (1..10) {
            print join "", map { \$a[rand @a] } (1..rand(3)+7);
            print qq{\n}
        }
EOPERL
}
 
echo1() {
    echo "$1"
}
 
if ! type tac &>/dev/null ; then
    alias tac="sed -n -e '1!G;\$p;h'"
fi
 
xt() {
    echo -n -e "\033]0;$*\007"
}
 
xa() {
    echo $$ $1 $2 >> ~/.config/awesome/active
    "$@"
    sed -e "/^$$ /d" -i ~/.config/awesome/active
}
# }}}
 
# {{{ Paludis
export PALUDIS_OPTIONS="--resume-command-template ${HOME}/.paludis-resume/XXXXXX"
# }}}
 
# {{{ Gentoo things
if [[ -f /etc/gentoo-release ]] ; then
    export ECHANGELOG_USER="Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk>"
 
    alias accept="ACCEPT_KEYWORDS='~${cache_gentoo_arch}'"
    alias acceptp="accept emerge -pv"
    alias accepte="accept sudo emerge"
 
    esync() {
        sudo emerge --sync
    }
 
    alias eupdp="emerge -uDpv world"
    alias eupd="sudo emerge -uD world"
    alias eetc="sudo /usr/sbin/etc-update"
 
    alias reps="repoman scan"
    alias repc="repoman commit"
    alias ech="echangelog"
    alias echvb="echangelog 'Version bump'"
    alias fixh='sed -i -e "1s,-200.,-`date +%Y`,"'
    alias remrw="sudo mount -oremount -orw"
 
    svcs () {
        sudo /etc/init.d/$1 start
    }
 
    svce () {
        sudo /etc/init.d/$1 stop
    }
 
    svcr () {
        sudo /etc/init.d/$1 restart
    }
 
    svcz () {
        sudo /etc/init.d/$1 zap
    }
 
    rca () {
        sudo /sbin/rc-update add $1 default
    }
 
    rcd () {
        sudo /sbin/rc-update del $1 default
    }
 
    uploadtogentoomirrors() {
        scp $1 dev.gentoo.org:/space/distfiles*local/ && \
            ssh dev.gentoo.org chmod g+rw /space/distfiles*local/$1
    }
 
    uploadconfigfile() {
        scp $1 dev.gentoo.org:public_html/configs/${1#.}
    }
 
    explainuseflag() {
        sed -ne "s,^\([^ ]*:\)\?$1 - ,,p" \
            /usr/portage/profiles/use.desc \
            /usr/portage/profiles/use.local.desc
    }
 
    edesc() {
        cat *.ebuild | sed -ne 's-^DESCRIPTION="\(.*\)".*-\1-1p' | sort -u
    }
 
    ewww() {
        cat *.ebuild | sed -ne 's-^HOMEPAGE="\(.*\)".*-\1-1p' | sort -u
    }
 
fi
# }}}
 
# {{{ minicom
alias minic='echo -ne "\033]0;minicom\007" ; minicom -c on'
# }}}
 
# {{{ screen
screen() {
    [[ -f ~/.screenrc ]] && sed -i -e "s!hardstatus string \".*\"!hardstatus string \"%h - $(hostname)\"!" \
        ~/.screenrc
    $(which screen ) "$@"
}
# }}}
 
# {{{ gcc
case "${HOSTNAME:-$(hostname )}" in
    snowcone*)
        export MACHINE_CFLAGS="-march=core2"
        export MACHINE_CXXFLAGS="-march=core2"
        ;;
 
    snowmelt*)
        export MACHINE_CFLAGS="-march=k8"
        export MACHINE_CXXFLAGS="-march=k8"
        ;;
 
    snowmobile*)
        export MACHINE_CFLAGS="-march=pentium-m"
        export MACHINE_CXXFLAGS="-march=pentium-m"
        ;;
esac
 
compiler-gcc-3.4() {
    export PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.6:${PATH}" \
        GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.6" \
        LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/32" \
        LD_LIBRARY_PATH="/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6:/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/32" \
        STDCXX_INCDIR="g++-v3" CXXFLAGS="-O2 -D__CIARANM_WAS_HERE -pipe -g -ggdb3" \
        LDFLAGS="-Wl,--as-needed" ACTIVE_COMPILER="+3.4"
}
 
compiler-gcc() {
    if [[ ${HOSTNAME} == "snowmobile" ]] ; then
        export \
            CFLAGS="-O1 -D__CIARANM_WAS_HERE -pipe -g -ggdb3 ${MACHINE_CFLAGS}" \
            CXXFLAGS="-O1 -D__CIARANM_WAS_HERE -pipe -g -ggdb3 ${MACHINE_CXXFLAGS}" \
            LDFLAGS="-Wl,--as-needed" PATH="/usr/lib/ccache/bin/:${PATH}" \
            ACTIVE_COMPILER="+"
    else
        export \
            CFLAGS="-O2 -D__CIARANM_WAS_HERE -pipe -g -ggdb3 ${MACHINE_CFLAGS}" \
            CXXFLAGS="-O2 -D__CIARANM_WAS_HERE -pipe -g -ggdb3 ${MACHINE_CXXFLAGS}" \
            LDFLAGS="-Wl,--as-needed" PATH="/usr/lib/ccache/bin/:${PATH}" \
            ACTIVE_COMPILER="+"
    fi
}
 
compiler-icc() {
    . /opt/intel/cce/*/bin/iccvars.sh
    export CC=icc CXX=icpc CXXFLAGS="-O1 -D__CIARANM_WAS_HERE__ -g -pipe" \
        ACTIVE_COMPILER="+icc"
}
 
compiler-conceptgcc() {
    export CC=conceptgcc CXX=conceptg++ \
        CXXFLAGS="-O2 -pipe -D__CIARANM_WAS_HERE__ -march=core2 -mtune=core2" \
        LDFLAGS="-Wl,--as-needed" \
        LDPATH=/usr/local/conceptgcc/lib/gcc/x86_64-pc-linux-gnu/4.3.0/:/usr/local/conceptgcc/lib64 \
        GCC_PATH=/usr/local/conceptgcc/bin/ \
        LD_LIBRARY_PATH=/usr/local/conceptgcc/lib/gcc/x86_64-pc-linux-gnu/4.3.0/:/usr/local/conceptgcc/lib64 \
        PATH=/usr/local/conceptgcc/bin/:${PATH} CHOST=x86_64-pc-linux-gnu \
        CBUILD=x86_64-pc-linux-gnu \
        ACTIVE_COMPILER="+conceptgcc"
}
# }}}
 
# {{{ Colours
case "${cache_term_colours}" in
    256)
        cache_colour_l_blue='\033[38;5;33m'
        cache_colour_d_blue='\033[38;5;21m'
        cache_colour_m_purp='\033[38;5;69m'
        cache_colour_l_yell='\033[38;5;229m'
        cache_colour_m_yell='\033[38;5;227m'
        cache_colour_m_gren='\033[38;5;35m'
        cache_colour_m_grey='\033[38;5;245m'
        cache_colour_m_orng='\033[38;5;208m'
        cache_colour_l_pink='\033[38;5;206m'
        cache_colour_m_teal='\033[38;5;38m'
        cache_colour_m_brwn='\033[38;5;130m'
        cache_colour_l_whte='\033[38;5;230m'
        cache_colour_end='\033[0;0m'
        ;;
    16)
        cache_colour_l_blue='\033[1;34m'
        cache_colour_d_blue='\033[0;32m'
        cache_colour_m_purp='\033[0;35m'
        cache_colour_l_yell='\033[1;33m'
        cache_colour_m_yell='\033[0;33m'
        cache_colour_m_gren='\033[0;32m'
        cache_colour_m_grey='\033[0;37m'
        cache_colour_m_orng='\033[1;31m'
        cache_colour_l_pink='\033[1;35m'
        cache_colour_m_teal='\033[0;36m'
        cache_colour_m_brwn='\033[0;31m'
        cache_colour_l_whte='\033[0;37m'
        cache_colour_end='\033[0;0m'
        ;;
    *)
        eval unset ${!cache_colour_*}
        ;;
esac
 
cache_colour_usr=${cache_colour_l_yell}
cache_colour_cwd=${cache_colour_m_gren}
cache_colour_wrk=${cache_colour_m_teal}
cache_colour_rok=${cache_colour_l_yell}
cache_colour_rer=${cache_colour_m_orng}
cache_colour_job=${cache_colour_l_pink}
cache_colour_dir=${cache_colour_m_brwn}
cache_colour_mrk=${cache_colour_m_yell}
cache_colour_lda=${cache_colour_m_yell}
cache_colour_scr=${cache_colour_l_blue}
cache_colour_scm=${cache_colour_m_orng}
 
case "${HOSTNAME:-$(hostname )}" in
    snowcone*)
        cache_colour_hst=${cache_colour_m_purp}
        ;;
    snowmobile*)
        cache_colour_hst=${cache_colour_m_orng}
        ;;
    snowmelt*)
        cache_colour_hst=${cache_colour_l_whte}
        ;;
    *)
        cache_colour_hst=${cache_colour_m_gren}
        ;;
esac
# }}}
 
# {{{ Prompt
ps_wrk_f() {
    if [[ "${PWD/ciaranm\/snow}" != "${PWD}" ]] ; then
        local p="snow${PWD#*/ciaranm/snow}"
        p="${p%%/*}"
        echo "@${p}"
    fi
}
 
ps_retc_f() {
    if [[ ${1} -eq 0 ]] ; then
        echo -e "${cache_colour_rok}"
    else
        echo -e "${cache_colour_rer}"
    fi
    return $1
}
 
ps_job_f() {
    local j="$(jobs)"
    if [[ -n ${j} ]] ; then
        local l="${j//[^$'\n']/}"
        echo "&$(( ${#l} + 1 )) "
    fi
}
 
ps_dir_f() {
    if [[ "${#DIRSTACK[@]}" -gt 1 ]] ; then
        echo "^$(( ${#DIRSTACK[@]} - 1 )) "
    fi
}
 
ps_lda_f() {
    local u=$(uptime )
    u=${u#*average?(s): }
    echo "${u%%,*} "
}
 
ps_scr_f() {
    if [[ "${TERM/screen/}" != "${TERM}" ]] ; then
        echo "s "
    fi
}
 
ps_scm_f() {
    local s=
    if [[ -d ".svn" ]] ; then
        local r=$(svn info | sed -n -e '/^Revision: \([0-9]*\).*$/s//\1/p' )
        s="(r$r$(svn status | grep -q -v '^?' && echo -n "*" ))"
    else
        local d=$(git rev-parse --git-dir 2>/dev/null ) b= r= a= c= e= f= g=
        if [[ -n "${d}" ]] ; then
            if [[ -d "${d}/../.dotest" ]] ; then
                if [[ -f "${d}/../.dotest/rebase" ]] ; then
                    r="rebase"
                elif [[ -f "${d}/../.dotest/applying" ]] ; then
                    r="am"
                else
                    r="???"
                fi
                b=$(git symbolic-ref HEAD 2>/dev/null )
            elif [[ -f "${d}/.dotest-merge/interactive" ]] ; then
                r="rebase-i"
                b=$(<${d}/.dotest-merge/head-name)
            elif [[ -d "${d}/../.dotest-merge" ]] ; then
                r="rebase-m"
                b=$(<${d}/.dotest-merge/head-name)
            elif [[ -f "${d}/MERGE_HEAD" ]] ; then
                r="merge"
                b=$(git symbolic-ref HEAD 2>/dev/null )
            elif [[ -f "${d}/BISECT_LOG" ]] ; then
                r="bisect"
                b=$(git symbolic-ref HEAD 2>/dev/null )"???"
            else
                r=""
                b=$(git symbolic-ref HEAD 2>/dev/null )
            fi
 
            if git status | grep -q '^# Changed but not updated:' ; then
                a="${a}*"
            fi
 
            if git status | grep -q '^# Changes to be committed:' ; then
                a="${a}+"
            fi
 
            if git status | grep -q '^# Untracked files:' ; then
                a="${a}?"
            fi
 
            e=$(git status | sed -n -e '/^# Your branch is /s/^.*\(ahead\|behind\).* by \(.*\) commit.*/\1 \2/p' )
            if [[ -n ${e} ]] ; then
                f=${e#* }
                g=${e% *}
                if [[ ${g} == "ahead" ]] ; then
                    e="+${f}"
                else
                    e="-${f}"
                fi
            else
                e=
            fi
 
            b=${b#refs/heads/}
            b=${b// }
            [[ -n "${b}" ]] && c="$(git config "branch.${b}.remote" 2>/dev/null )"
            [[ -n "${r}${b}${c}${a}" ]] && s="(${r:+${r}:}${b}${c:+@${c}}${e}${a:+ ${a}})"
        fi
    fi
    s="${s}${ACTIVE_COMPILER}"
    s="${s:+${s} }"
    echo -n "$s"
}
 
PROMPT_COMMAND="export prompt_exit_status=\$? ; $PROMPT_COMMAND"
ps_usr="\[${cache_colour_usr}\]\u@"
ps_hst="\[${cache_colour_hst}\]\h "
ps_cwd="\[${cache_colour_cwd}\]\W\[${cache_colour_wrk}\]\$(ps_wrk_f) "
ps_mrk="\[${cache_colour_mrk}\]\$ "
ps_end="\[${cache_colour_end}\]"
ps_ret='\[$(ps_retc_f $prompt_exit_status)\]$prompt_exit_status '
ps_job="\[${cache_colour_job}\]\$(ps_job_f)"
ps_lda="\[${cache_colour_lda}\]\$(ps_lda_f)"
ps_dir="\[${cache_colour_dir}\]\$(ps_dir_f)"
ps_scr="\[${cache_colour_scr}\]\$(ps_scr_f)"
ps_scm="\[${cache_colour_scm}\]\$(ps_scm_f)"
export PS1="${ps_sav}${ps_usr}${ps_hst}${ps_cwd}${ps_ret}${ps_lda}${ps_job}${ps_dir}${ps_scr}${ps_scm}"
export PS1="${PS1}${ps_mrk}${ps_end}"
# }}}
 
true
 
# vim: set et ts=4 tw=80 :