Prints out a random entry from /r/showerthoughts.
The following libraries are required to compile and run showerthoughts
:
Before invoking make
, install them as follows:
$ sudo apt install libcurl3-dev libjson-c-dev
$ sudo dnf install libcurl-devel json-c-devel
$ ./autogen.sh
$ ./configure
$ make && make install
To get a showerthought displayed at the start of each interactive login shell, add this to your .bash_profile
:
# $HOME/.bash_profile
if [[ -n $PS1 ]]; then
if hash cowsay 2>/dev/null; then
cowsay "$(showerthoughts)"
else
showerthoughts
fi
fi