e2a961f1d037

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 08 Nov 2018 18:11:27 -0500
parents 653e99cc9ebc
children 5d1659688c9b 31ddcddb32bf
branches/tags (none)
files bin/cowhead bin/figlet-find-font bin/heading bin/show-figlet-font fish/config.fish

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/cowhead	Thu Nov 08 18:11:27 2018 -0500
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+COWS=("b" "d" "g" "p" "s" "t" "w" "y")
+COW=${COWS[$RANDOM % ${#COWS[@]}]}
+
+PROGS=("cowsay" "cowthink")
+PROG=${PROGS[$RANDOM % ${#PROGS[@]}]}
+
+toilet -t -k -F gay:crop -f calvins "$@" | $PROG -n -$COW
--- a/bin/figlet-find-font	Thu Nov 08 17:18:52 2018 -0500
+++ b/bin/figlet-find-font	Thu Nov 08 18:11:27 2018 -0500
@@ -1,3 +1,3 @@
 #!/usr/bin/env bash
 
-ls /usr/share/figlet/ | grep -e 'fl[fc]' | xargs -I FONT -n1 figlet-out FONT "$@" | less
+ls /usr/share/figlet/ | grep -e '.[tf]lf$' | tr -s "\n" "\0" | xargs -0 -I FONT show-figlet-font FONT "$@" | less -R
--- a/bin/heading	Thu Nov 08 17:18:52 2018 -0500
+++ b/bin/heading	Thu Nov 08 18:11:27 2018 -0500
@@ -1,5 +1,8 @@
 #!/usr/bin/env bash
 
+FONT="$1"
+shift
+
 echo
-toilet -k -F metal:crop -f "$1" "$2"
+toilet -t -k -F metal:crop -f "$FONT" "$@"
 echo
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/show-figlet-font	Thu Nov 08 18:11:27 2018 -0500
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+
+FONT="$1"
+shift
+
+echo "$FONT"
+toilet -t -f "$FONT" -F metal "$@" || true
--- a/fish/config.fish	Thu Nov 08 17:18:52 2018 -0500
+++ b/fish/config.fish	Thu Nov 08 18:11:27 2018 -0500
@@ -79,6 +79,7 @@
 prepend_to_path "/usr/local/bin"
 prepend_to_path "/usr/local/go/bin"
 prepend_to_path "/usr/local/sbin"
+prepend_to_path "/usr/games"
 prepend_to_path "$HOME/src/dotfiles/lisp/binaries"
 prepend_to_path "$HOME/src/dotfiles/bin"
 prepend_to_path "$HOME/src/hg"