Last Updated: February 25, 2016
·
636
· stelcheck

QOTD Quotes when you start a new shell

I have this piece of code in my bash profile. Not really THAT useful, but trust me, its a ton of fun :D

#!/usr/bin/env bash

if [ ! -d ~/.bash.d ]; then
    pushd ~;
    git clone https://github.com/stelcheck/libbash.git .bash.d;
    popd;
fi

. ~/.bash.d/colorize.sh
. ~/.bash.d/networking.sh

echo "  ------------------------------------------" | yellow;
echo "" \
    | tcp ota.iambic.com  17 \
    | tail -n1 \
    | sed "s/\|/\\`echo -e '\n\r  '`  --/" \
    | fold -s -w 40 \
    | (while read line; do echo "  ${line}" | green; done) \
;
echo "  ------------------------------------------" | yellow;