about summary refs log tree commit diff
path: root/configs/shared
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-27T18·25+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-27T18·25+0000
commitac34df23727bec7e0adc24dc2b81a9f01d65d7e0 (patch)
treed1d1f68b21e73c2bb829891a807debaeae202233 /configs/shared
parent2b34daf50adcd204f9c3265fdf05230dd843460b (diff)
Add daily Google ENG tips to `prodaccess`
Wraps the existing `prodaccess` executable and displays a quote from Google
ENG's fortune db.

Fortune is a GNU tool intended to support random quote compilation, display,
etc. It's pretty interesting.

NOTE: the `prodcertstatus` executable that this function is using as a guard
looks like it might be useful moving forward.
Diffstat (limited to 'configs/shared')
-rw-r--r--configs/shared/zsh/functions.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/configs/shared/zsh/functions.zsh b/configs/shared/zsh/functions.zsh
index 4a0ee94b2926..cb6154a14915 100644
--- a/configs/shared/zsh/functions.zsh
+++ b/configs/shared/zsh/functions.zsh
@@ -1,3 +1,10 @@
+prodaccess() {
+  # Wraps existing `prodaccess` command to provide Google-specific tips.
+  # Take from this: https://g3doc.corp.google.com/experimental/users/diamondm/fortunes/README.md?cl=head
+  command prodaccess "$@" && \
+    cowsay $(/google/data/ro/users/di/diamondm/engfortunes/fortune.sh --extra_space)
+}
+
 fv() {
   # Usage: fv file pattern
   # This is useful when you know the fuzzy name of the file you want to edit