Print random quote after status on profile load
[khome.git] / home / .profile
index 9b45b68..b01c106 100644 (file)
@@ -1,8 +1,25 @@
 . $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
     . $file
 done
+
+umask 077
+
+if test ! "$SSH_AGENT_PID"
+then
+    eval "$(ssh-agent)"
+fi
+
+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.028049 seconds and 4 git commands to generate.