From 1e1890efcecf8f3b9131a07db6f5755234896ca3 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 6 Jan 2024 10:00:51 -0500 Subject: [PATCH] Add fortunes file. I haven't actually added anything to it yet though. --- .ashrc | 4 ++++ .fortunes | 0 2 files changed, 4 insertions(+) create mode 100644 .fortunes diff --git a/.ashrc b/.ashrc index 4e5db3b..d543b21 100644 --- a/.ashrc +++ b/.ashrc @@ -238,6 +238,10 @@ PS1="\$(generate_prompt)" # Startup functions - these are executed on every shell start. # +# Display a line from the fortunes file. +cols=$(stty size | cut -d ' ' -f 2) +shuf -n 1 "$HOME/.fortunes" | fold -s -w $(($cols / 2)) + # Run scansoft on shell start scansoft diff --git a/.fortunes b/.fortunes new file mode 100644 index 0000000..e69de29