#!/bin/bash if [[ $1 == "" ]]; then rng=$((1 + $RANDOM % 11 )) else if [[ $1 -lt 11 ]]; then rng=$1 else rng=$((1 + $RANDOM % 11 )) fi fi if [ $rng -eq 1 ] then nofetch="probably a computer" elif [ $rng -eq 2 ] then nofetch="there's probably some ram in there" elif [ $rng -eq 3 ] then nofetch="init should ideally be running" elif [ $rng -eq 4 ] then nofetch="yeah" elif [ $rng -eq 5 ] then nofetch="you should probably go outside" elif [ $rng -eq 6 ] then nofetch="i would be lead to believe that / is mounted" elif [ $rng -eq 7 ] then nofetch="hey, what's this knob do ?" elif [ $rng -eq 8 ] then nofetch="do you have games on your phone ?" elif [ $rng -eq 9 ] then nofetch="you mean to tell me there aren't little men in this box?" elif [ $rng -eq 10 ] then nofetch="plan 4 from the front door" elif [ $rng -eq 11 ] then if [[ $osname == "Arch Linux" ]]; then nofetch="I use arch btw" else nofetch="I use "$osname "btw" fi else nofetch="something has gone terribly wrong" fi # exceptions to the standard if [ $(uname -s) == "Darwin" ] then osname="macOS/" elif [ $(uname -s) == "FreeBSD" ] then osname="" else osname=$(cat /etc/os-release | grep -w NAME | head -1 | sed "s/NAME=//g" | sed "s/\"//g")" " fi echo " " echo " > $nofetch " echo " > $osname$(uname -smr)" echo " "