Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.02 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.02 KB

showerthoughts

C/C++ CI Current Release

Prints out a random entry from /r/showerthoughts.

Building

Dependencies

The following libraries are required to compile and run showerthoughts:

Before invoking make, install them as follows:

Debian

$ sudo apt install libcurl3-dev libjson-c-dev

Fedora

$ sudo dnf install libcurl-devel json-c-devel

Compile

$ ./autogen.sh
$ ./configure
$ make && make install

Usage

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