zsh: renew me to renew my license (c/o Ben)

This commit is contained in:
Colin 2023-02-18 10:12:40 +00:00
parent 5de54acd90
commit 71028911e3

View File

@ -83,6 +83,11 @@ in
pushd "$1";
}
expiration=$(date -d "6 Mar" +%s)
today=$(date +%s)
days_until=$(( ($expiration - $today) / (24*60*60) ))
echo "You have $days_until days to renew your driver's license"
# auto-cd into any of these dirs by typing them and pressing 'enter':
hash -d 3rd="/home/colin/dev/3rd"
hash -d dev="/home/colin/dev"