Most people who as seen my terminal always asked what I do to make it look fancy. The secret is very simple,I just use some of the cool stuff that is available on my platform,
On Debian. bases systems you can use the following command and get your cool stuff,
$ sudo apt-get install jq, httpie, figlet
Other platforms please follow detail provided below.
- jq : https://stedolan.github.io/jq/download/
- httpie : https://httpie.org/doc#installation
- figlet:
$ sudo yum install figlet [On CentOS/RHEL]
$ sudo dnf install figlet [On Fedora 22+]
Once you have the required software, it is simple to just add the following to your .zshrc
, or .basshrc
files.
#Nerdy Jokes
cat ~/.icndb | jq ".value.joke" | tee
#My local IP address
cat ~/.ipaddress | jq '.ip +", " +.city +", "+.region +", "+ .country + ", " + .org'
# Print the Upstram Release version
source /etc/os-release
# ASCII Art (Below part might change for non Linux Mint users)
figlet -f slant "${UBUNTU_CODENAME}"; echo "Powered by ${NAME} ${VERSION}"
# Print weather
cat ~/.wttr
Here are the enties for the crontab
*/30 * * * * wget -O ~/.icndb "http://api.icndb.com/jokes/random?limitTo=[nerdy]" >/dev/null 2>&1
*/30 * * * * wget -O ~/.wttr "http://wttr.in/?0" >/dev/null 2>&1
*/30 * * * * wget -O ~/.ipaddress "https://ipapi.co/json" >/dev/null 2>&1