Print random quote after status on profile load
[khome.git] / home / .profile
index 2204beb..b01c106 100644 (file)
@@ -1,6 +1,6 @@
 . $HOME/lib/login_variables.private.sh  # Personal data variables
 
-unalias d  # Defined by oh-my-zsh, but I want it for dict/fzf function.
+unalias d 2> /dev/null || true  # Defined by oh-my-zsh, but I want it for dict/fzf function.
 
 for file in $HOME/lib/login_*.sh
 do
@@ -14,5 +14,12 @@ then
     eval "$(ssh-agent)"
 fi
 
-# https://rustup.rs/
-export PATH="$HOME/.cargo/bin:$PATH"
+status
+
+printf '\n'
+
+awk \
+    -v RS='' \
+    'BEGIN {srand()} {fortunes[n++] = $0} END {print fortunes[int(n * rand())]}' \
+    ~/arc/doc/fortunes/orangebook_.txt \
+| fold -s
This page took 0.027622 seconds and 4 git commands to generate.