Created
August 9, 2017 15:07
-
-
Save RyanBreaker/d09cd7aa81ae3b92cc3e578bbe434926 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set file ~/.lastapt | |
| # Update packages with apt-get | |
| function aptup | |
| sudo apt-get update; and sudo apt-get dist-upgrade | |
| end | |
| # Day of week, e.g. Wed | |
| function shortdate | |
| date +%a | |
| end | |
| # Update $file with shortdate | |
| function updatelastapt | |
| shortdate > $file | |
| end | |
| touch $file | |
| if test (cat $file) != (shortdate) | |
| aptup | |
| end | |
| updatelastapt | |
| clear | |
| # Pretty intro | |
| fortune -s | cowsay | lolcat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment