Chris Holtz

Extraordinarily Vapid Git Fun

A little while back, a friend of mine said to me, “You know what I really want?”

“What?”, I replied.

“I want to type ‘git stache’ in my terminal and get a picture of Tom Selleck.”

Normally I’d dismiss such a challenge, usually due to time constraints or high priorities. But something so incredibly useful could not be left unmade.

I looked for a simple picture of Tom Selleck (everyone keeps these hanging around right?) and plugged it into an online ASCII art site. I honestly don’t remember which one I used, but if you google “online ascii art generator”, it’s likely one of the top matches.

Armed with an ASCII image, I plugged it into my .gitconfig file:

1
2
[alias]
stache = !echo ':~=~?I?~:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::=+7$II77\n,:+=II+~:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:==I77777\n~+?7II+::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::=?I$$$Z\n=?$Z7$=::,,,,,,,,,,,,,,,,,,,,,:,,:::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::~+I$$$$\n=?ZZ$$=:,,,,,,,,,,,,,,,,,,,,,,::,:~=::,,,,,,,,,,,,,,,,,,,,,,,,,,,,::,,:,:~?I$$$$\n+$$Z77~::,,,,,,,,,,,,,,,,,,,::~~::==:::,,,,,,,,,,,,,,,,,,:,,,,:::::::::::~+I7$Z$\nII7Z77~:,,,,,,,,,,,,,,,,:,,:::~~::==::::,,,,,,,,,,,,:,,,:,::::::,:::::::::+?77$$\nI7ZZ77~:,,,,,,,,,,,,,,::,:::::~~::==:::,,,,,,,,,,,,,::::::::::,,,::::::,,:??7$$$\n~?$Z77=:,,,,,,,,,,::::::::::::::~:==::::,,,,,:::::::~===?II77I=~::::,,:,,,=+7777\n:+OZ77=~:,,,,,,,,,:~::~:::::::::~~=+::::,:,,:::~~~==+?I$$$$ZZ$7I+~::,,:,:,~+II$7\n~IZ$77+~:,:,,,,,,,:::~~~::::~:~~~~=?~:::::::~==+??I7$$$$$ZZZZZZZ7?~:::::::~+77$$\n:+I77$+~::::~?I?++=~~~~~~=~===~~==+I~:~~==+?77$$ZZO88DOZ77II$$ZZZ$+~::::::~+I$$$\n:I=7ZZ?~::~+I$$7I???????+++++====++I~~+?II$$OOO88DDDOZI?+++===+?$Z$+::::::~=II$$\n:+?$ZOI~:~?7OO$ZOZZ$$$777I??+????++?~~+?ZOO888DDNNNNNN8DD8$I++++II$I~~~:::~~II77\n:=II$OZ?=?ZZZO88DDDDDDNDD8ZZ88ZZ?+=~=~=+77OZO8D8DN$?O8OO8D$8ND$I???+=~~~:~~~I$II\n:~77ZZZ?=+I77$$$8NNNMNMMNNNN888$??======I7OZ$ZD888$7I7DDZ$ZOOOOO$7?+~=~~~~~~77Z$\n,:+$$7$?~+I+==7ZNNND78NDDDOZ8888I?=~====I7$$$$O$$$$7IIII77???++?II+=~~~~~~~~7777\n,:,:III=~===IOND7?88O8DO$OZZ$IZ$?+~====+??II7I777$$$III7??=~::::~:::~:~~~~~~III7\n,,::?$7=~~=+ODZZOZ7Z$$7777777777+=~~~===????7$II7II777I?==~~::::::::::~~~===?III\n,,,~~I=~::~=+~==+++???7$$7I?I?===~~~:~~=++++=+??++??++~~::::::,:::::~~~=~===+??~\n,,:~II=::::::~~~=+????????++===~~~::::~~=+============~::::::::::::~~~~~~~=~+I+~\n,,,:77+~::::::~=~~~~:~==~~~~~~~~~~::::~~~=~~~~~~~~:~::::::::::::~~~~~~~~~~==+?~~\n,,:~?I?~:::::::::::,,,::::::~::~:::::::~~~~~~~~~~::::::::::::::::~~~~~==~~==~==~\n,,:::?I=::::::::::::,:,,,,:::::::::::::::~~~~~~~~~~::::::,::::::~~~~======~~~=~~\n,,,::~$+::::::::::,,,,,,,,,::::::::::::::~~~~~==~~~~~:::::::::::~~~~~~~==~~~~~~:\n::::::=+~~:::::::::::::::::::~::::::::::::~~~~=======~~~~:::::::~~~~~~==~~~~~:~~\n,,,,::~=~~::::~~~:::::::::,:=~:::::::::::~~~~~====++===~~~::::::~~~~~~==~~~~~~=?\n,,,,,,:~~~~~~~~=~~~:::::::~~=~::::::::~~~::~~~~++=+++===~~:~~~~~=~~~~====~~~~:~?\n,,,,,,,::~~:~~~~~~~~:::::~~=+~~~~======+++I$Z7+?=~~=+++==~===============~~~::=$\n,,,,,,,:::~~~~=~~~~~~~:~~~+++?$$?+++++??7ZZ$77+~~~~~+++===================~~:~~$\n,,,,,,,:,::::~~===~~~:~~~~+?==?7$$?I7$I$OZI++==~~~~~~=++=+===++=+++=+=====~~:~~7\n,,,,,,,,,:~:::~~==~~~~~~===~==+?I7$Z8888OOZZZ77II?===~~==+=++=++++++++++==~~~=~I\n,,,,,,,,,,::::~~====~~:~==~+++I7$ZZZ8D88OZZZ$$$$77II==~~~=====++++++++====~~==~I\n,,,,,,,,,,::::~~====~~~~=++?77$ZO8OO8D8OOOOZZ$O$$$7$7I+=~=~~~=++++++++=====~+=~7\n,,,,,,,,,,:::~~~==++~~~~++7I7$$88OOOOOOOZZOZOOZZOZOZ$$$7?==~~~++++++++++=====~=7\n,,,,,,,:::,:::~~=+??~==+?I$Z$ZOOOO8OOO8OOZZOOOZZZOZZZZZ$7+=~~~+++++++++++===~~~I\n,,,,,,,,,,,::::~==?+==?I$$ZZOZOOO8OOO$7ZOOZOZZZZZZOZOOOZ7?=~~~=++++++++++++=::~I\n,,,,,,,,,,,,~~~~==?+=+7ZOZOOZZZOZOZZ$$ZOZZOOOZZZZZOOOZ$7I+=~~=++++++++++?+=~~~~?\n,,,,,,,,,,,,:~~~=+??=+7$OO888O$777II?+??++=+++??IIII77II?+====+++++++++?++~~~~=I\n,,,,,,,,,,,,,:~~=+?+=++?7$7I+=====~===========+++++??????++==++++++++???+===~~=?\n,,,,,,,,,,,,,,~===++==+?II??++========+???+++++++=+++++++++++++++++++??+==+=~~=?\n,,,,,,,,,,,,,,:~==++~=++??I?+++++++?III777II??+?+=++++++++++++++++++?I+++++=~~=?\n,,,,,,,,,::,::,,~=++=~=++++++++++++++?IIIII?++++==+=++++++++??+?++?I???++++=~~~+\n,,,,,,,,::::,,:::~=++==+++++++===++??I??+++++++===++++++++??+++?+?I???++++==~~~+\n,,,,,,,,,,::::::::+??+++++==========~~~~~~~~~~~====++++++????????II???++++=~~:~+\n,,,,,,,,,,:::::::~~=?I++++====~~~~:::::::~~~:~~~==+++++++??????I??+?++++===~::~=\n,,,,,,,,,:::::~~~=+++???++==~~~~~~~~:::~~~~~~~~~=++++++++????II????+++++==~~::~~\n,,,,,,,,,:::::~:++++++I?+++====~~~~~~~~===~~~===++++????????II?????++++==~~:::~=\n,,,,,,,,,,::::~=+++++=~=I?++++======~==+++++++++++?????II7II??++++++++==~~::::==\n,,,,,,,,,,:::~++==+++?~~+???+++?++=+++++++?+?????????IIIII?????++++++===~~::::=+\n,,,,,,,,::::~=====+=++~~~=II??????++++??????II??IIIIIIII????++++++====~~:::::~++\n'

Using the ! symbol, you can configure a git alias to run pretty much any executable.

Usage:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
> git stache

:~=~?I?~:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::=+7$II77\
,:+=II+~:,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:==I77777\
~+?7II+::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::=?I$$$Z\
=?$Z7$=::,,,,,,,,,,,,,,,,,,,,,:,,:::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::~+I$$$$\
=?ZZ$$=:,,,,,,,,,,,,,,,,,,,,,,::,:~=::,,,,,,,,,,,,,,,,,,,,,,,,,,,,::,,:,:~?I$$$$\
+$$Z77~::,,,,,,,,,,,,,,,,,,,::~~::==:::,,,,,,,,,,,,,,,,,,:,,,,:::::::::::~+I7$Z$\
II7Z77~:,,,,,,,,,,,,,,,,:,,:::~~::==::::,,,,,,,,,,,,:,,,:,::::::,:::::::::+?77$$\
I7ZZ77~:,,,,,,,,,,,,,,::,:::::~~::==:::,,,,,,,,,,,,,::::::::::,,,::::::,,:??7$$$\
~?$Z77=:,,,,,,,,,,::::::::::::::~:==::::,,,,,:::::::~===?II77I=~::::,,:,,,=+7777\
:+OZ77=~:,,,,,,,,,:~::~:::::::::~~=+::::,:,,:::~~~==+?I$$$$ZZ$7I+~::,,:,:,~+II$7\
~IZ$77+~:,:,,,,,,,:::~~~::::~:~~~~=?~:::::::~==+??I7$$$$$ZZZZZZZ7?~:::::::~+77$$\
:+I77$+~::::~?I?++=~~~~~~=~===~~==+I~:~~==+?77$$ZZO88DOZ77II$$ZZZ$+~::::::~+I$$$\
:I=7ZZ?~::~+I$$7I???????+++++====++I~~+?II$$OOO88DDDOZI?+++===+?$Z$+::::::~=II$$\
:+?$ZOI~:~?7OO$ZOZZ$$$777I??+????++?~~+?ZOO888DDNNNNNN8DD8$I++++II$I~~~:::~~II77\
:=II$OZ?=?ZZZO88DDDDDDNDD8ZZ88ZZ?+=~=~=+77OZO8D8DN$?O8OO8D$8ND$I???+=~~~:~~~I$II\
:~77ZZZ?=+I77$$$8NNNMNMMNNNN888$??======I7OZ$ZD888$7I7DDZ$ZOOOOO$7?+~=~~~~~~77Z$\
,:+$$7$?~+I+==7ZNNND78NDDDOZ8888I?=~====I7$$$$O$$$$7IIII77???++?II+=~~~~~~~~7777\
,:,:III=~===IOND7?88O8DO$OZZ$IZ$?+~====+??II7I777$$$III7??=~::::~:::~:~~~~~~III7\
,,::?$7=~~=+ODZZOZ7Z$$7777777777+=~~~===????7$II7II777I?==~~::::::::::~~~===?III\
,,,~~I=~::~=+~==+++???7$$7I?I?===~~~:~~=++++=+??++??++~~::::::,:::::~~~=~===+??~\
,,:~II=::::::~~~=+????????++===~~~::::~~=+============~::::::::::::~~~~~~~=~+I+~\
,,,:77+~::::::~=~~~~:~==~~~~~~~~~~::::~~~=~~~~~~~~:~::::::::::::~~~~~~~~~~==+?~~\
,,:~?I?~:::::::::::,,,::::::~::~:::::::~~~~~~~~~~::::::::::::::::~~~~~==~~==~==~\
,,:::?I=::::::::::::,:,,,,:::::::::::::::~~~~~~~~~~::::::,::::::~~~~======~~~=~~\
,,,::~$+::::::::::,,,,,,,,,::::::::::::::~~~~~==~~~~~:::::::::::~~~~~~~==~~~~~~:\
::::::=+~~:::::::::::::::::::~::::::::::::~~~~=======~~~~:::::::~~~~~~==~~~~~:~~\
,,,,::~=~~::::~~~:::::::::,:=~:::::::::::~~~~~====++===~~~::::::~~~~~~==~~~~~~=?\
,,,,,,:~~~~~~~~=~~~:::::::~~=~::::::::~~~::~~~~++=+++===~~:~~~~~=~~~~====~~~~:~?\
,,,,,,,::~~:~~~~~~~~:::::~~=+~~~~======+++I$Z7+?=~~=+++==~===============~~~::=$\
,,,,,,,:::~~~~=~~~~~~~:~~~+++?$$?+++++??7ZZ$77+~~~~~+++===================~~:~~$\
,,,,,,,:,::::~~===~~~:~~~~+?==?7$$?I7$I$OZI++==~~~~~~=++=+===++=+++=+=====~~:~~7\
,,,,,,,,,:~:::~~==~~~~~~===~==+?I7$Z8888OOZZZ77II?===~~==+=++=++++++++++==~~~=~I\
,,,,,,,,,,::::~~====~~:~==~+++I7$ZZZ8D88OZZZ$$$$77II==~~~=====++++++++====~~==~I\
,,,,,,,,,,::::~~====~~~~=++?77$ZO8OO8D8OOOOZZ$O$$$7$7I+=~=~~~=++++++++=====~+=~7\
,,,,,,,,,,:::~~~==++~~~~++7I7$$88OOOOOOOZZOZOOZZOZOZ$$$7?==~~~++++++++++=====~=7\
,,,,,,,:::,:::~~=+??~==+?I$Z$ZOOOO8OOO8OOZZOOOZZZOZZZZZ$7+=~~~+++++++++++===~~~I\
,,,,,,,,,,,::::~==?+==?I$$ZZOZOOO8OOO$7ZOOZOZZZZZZOZOOOZ7?=~~~=++++++++++++=::~I\
,,,,,,,,,,,,~~~~==?+=+7ZOZOOZZZOZOZZ$$ZOZZOOOZZZZZOOOZ$7I+=~~=++++++++++?+=~~~~?\
,,,,,,,,,,,,:~~~=+??=+7$OO888O$777II?+??++=+++??IIII77II?+====+++++++++?++~~~~=I\
,,,,,,,,,,,,,:~~=+?+=++?7$7I+=====~===========+++++??????++==++++++++???+===~~=?\
,,,,,,,,,,,,,,~===++==+?II??++========+???+++++++=+++++++++++++++++++??+==+=~~=?\
,,,,,,,,,,,,,,:~==++~=++??I?+++++++?III777II??+?+=++++++++++++++++++?I+++++=~~=?\
,,,,,,,,,::,::,,~=++=~=++++++++++++++?IIIII?++++==+=++++++++??+?++?I???++++=~~~+\
,,,,,,,,::::,,:::~=++==+++++++===++??I??+++++++===++++++++??+++?+?I???++++==~~~+\
,,,,,,,,,,::::::::+??+++++==========~~~~~~~~~~~====++++++????????II???++++=~~:~+\
,,,,,,,,,,:::::::~~=?I++++====~~~~:::::::~~~:~~~==+++++++??????I??+?++++===~::~=\
,,,,,,,,,:::::~~~=+++???++==~~~~~~~~:::~~~~~~~~~=++++++++????II????+++++==~~::~~\
,,,,,,,,,:::::~:++++++I?+++====~~~~~~~~===~~~===++++????????II?????++++==~~:::~=\
,,,,,,,,,,::::~=+++++=~=I?++++======~==+++++++++++?????II7II??++++++++==~~::::==\
,,,,,,,,,,:::~++==+++?~~+???+++?++=+++++++?+?????????IIIII?????++++++===~~::::=+\
,,,,,,,,::::~=====+=++~~~=II??????++++??????II??IIIIIIII????++++++====~~:::::~++\

The code Available for download, in all of its ridiculous glory.