Skip to content

Instantly share code, notes, and snippets.

@sumpygump
Created February 26, 2016 20:10

Revisions

  1. sumpygump created this gist Feb 26, 2016.
    26 changes: 26 additions & 0 deletions maybe-git
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    #!/bin/bash

    # Maybe Git

    # INSTALLATION
    # 1. Move this file into your ~/bin directory
    # mv ./maybe-git ~/bin
    # 2. Then run the following command:
    # alias git='~/bin/maybe-git'

    GIT=`which git`

    chance=$RANDOM
    let "chance %= 10"

    # A 1 in 10 chance that the command will yield "Your Mom" instead of the
    # desired command
    if [ "$chance" = "3" ]; then
    echo $'__ __ __ __ '
    echo $'\ \ / /__ _ _ _ __ | \/ | ___ _ __ ___ '
    echo $' \ V / _ \| | | | \'__| | |\/| |/ _ \| \'_ ` _ \ '
    echo $' | | (_) | |_| | | | | | | (_) | | | | | |'
    echo $' |_|\___/ \__,_|_| |_| |_|\___/|_| |_| |_|'
    else
    $GIT $@
    fi