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;
Written by Marc Trudel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Networking
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#