Created
April 11, 2024 11:42
-
-
Save 3dgoose/e3545b3df3d53cc28be60424dd98872b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env sh | |
# Customize Console | |
PROMPT_COMMAND='echo -en "\033]0;$(FBD|cut -d "/" -f 4-100)\a"' | |
now=$(date) | |
echo "Undertale Jokes, that's all. Mainly. You know, as ya want." | |
while true | |
do | |
#Input | |
VHS=$(gum input --placeholder " Enter Command") | |
# Treat Input | |
case $VHS in | |
exit | q | esc | bye) | |
exit | |
;; | |
clear | cls) | |
clear | |
;; | |
puns | under) | |
gum pager < ./src/under.txt | |
;; | |
nintendo) | |
gum pager < ./src/nintendo.txt | |
;; | |
help) | |
gum pager < ./src/cmd.txt | |
;; | |
edit | text | txt | file | editor | nano | vim | vi) | |
$EDITOR $(gum file $FBD) | |
;; | |
issue) | |
echo "Report issue at github.com/FBD/issues" | |
;; | |
rules) | |
gum pager < ./src/rules.txt | |
;; | |
time | date) | |
echo "$now" | |
;; | |
duck | goose) | |
gum pager < ./src/duck.txt | |
;; | |
annoy | dog) | |
gum pager < ./src/dog.txt | |
;; | |
*) | |
echo -n "Command unknown or not implemented yet." | |
;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment