From ac34df23727bec7e0adc24dc2b81a9f01d65d7e0 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 27 Mar 2019 18:25:11 +0000 Subject: 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. --- configs/shared/zsh/functions.zsh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configs/shared') 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 -- cgit 1.4.1