Skip to content

Instantly share code, notes, and snippets.

@reflexdemon
Last active September 28, 2020 10:03
Show Gist options
  • Save reflexdemon/0318e813cf00d2e1192c10e7c945b889 to your computer and use it in GitHub Desktop.
Save reflexdemon/0318e813cf00d2e1192c10e7c945b889 to your computer and use it in GitHub Desktop.
Make the terminal beautiful using Zsh on Linux Mint

Reflex Terminal

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.

  1. jq : https://stedolan.github.io/jq/download/
  2. httpie : https://httpie.org/doc#installation
  3. 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

crontab

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment