dotfiles /



if [ "`id -u`" = "0" ] ; then
    if [ $platform = 'Linux' ]; then

        cat <<EOF > /etc/apt/sources.list

deb testing main contrib non-free
#deb-src testing main contrib non-free

deb testing/updates main contrib non-free
#deb-src testing/updates main contrib non-free

        apt-get update
        apt-get -y dist-upgrade
	    apt-get -y install make less build-essential python mercurial \
            python-virtualenv vim-nox

    elif [ $platform = 'FreeBSD' ]; then


        export BATCH=
        [ -z "`pkg_info | grep portmaster`" ] && make -DBATCH install clean -C /usr/ports/ports-mgmt/portmaster
        [ -z "`pkg_info | grep libiconv`" ] && make -DEXTRA_ENCODINGS install clean -C /usr/ports/converters/libiconv
        [ -z "`pkg_info | grep python27`" ] && make -DWITHOUT_EXAMPLES install clean -C /usr/ports/lang/python27
        [ -z "`pkg_info | grep mercurial`" ] && make install clean -C /usr/ports/devel/mercurial
        [ -z "`pkg_info | grep virtualenv`" ] && make install clean -C /usr/ports/devel/py-virtualenv
        [ -z "`pkg_info | grep vim`" ] && make -DWITH_PYTHON -DWITHOUT_X11 -DEXUBERANT_CTAGS install clean -C /usr/ports/editors/vim
        unset BATCH


rm -f ~/.hgrc
cat <<EOF > ~/.hgrc
[hostfingerprints] = 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b

rm -rf dotfiles
hg clone -q dotfiles
make install -sC dotfiles
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.