From 4961c919b8ddc84bf48f608367d97f062d8043dd Mon Sep 17 00:00:00 2001 From: Carolyn Saunders Date: Mon, 29 May 2017 23:51:07 -0700 Subject: [PATCH] Added nice countdown function --- .zshrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.zshrc b/.zshrc index c0bdbe6..ee128a6 100644 --- a/.zshrc +++ b/.zshrc @@ -53,6 +53,7 @@ alias cl="clear && neofetch --ascii_distro Gentoo" alias prm=". $HOME/.prm/prm.sh" alias bar=". $HOME/.scripts/bar.sh" alias pipes="clear; pipes.sh -r 4000; clear" +alias tor="cd $HOME/.apps/tor-browser_en-US; ./start-tor-browser.desktop; cd" . $HOME/.asdf/asdf.sh . $HOME/.asdf/completions/asdf.bash @@ -62,4 +63,17 @@ export PATH="$HOME/.apps":$PATH export PATH="$HOME/.local/bin":$PATH export PATH="$HOME/.cargo/bin":$PATH +export JOBS="5" + +# Tools +function countdown(){ + date1=$((`date +%s` + $1)); + while [ "$date1" -ge `date +%s` ]; do + echo -ne "$(date -u --date @$(($date1 - `date +%s`)) +%H:%M:%S)\r"; + sleep 0.1 + done + notify-send "Timer's done!" +} + fortune -o | cowsay +