diff options
author | noa | 2024-01-03 10:30:39 +0000 |
---|---|---|
committer | noa | 2024-01-03 10:30:39 +0000 |
commit | 7c409d04d65df2d6c4d8078aaf6d01187034a967 (patch) | |
tree | ac2abde98a0e789bae2f7cb934c9ea2ad413bff9 | |
parent | 28d765eb93836afa5b0a74fcc8467a0a52415309 (diff) |
Add miscellaneous commands
-rwxr-xr-x | hug | 3 | ||||
-rwxr-xr-x | wave | 9 | ||||
-rwxr-xr-x | y | 13 |
3 files changed, 25 insertions, 0 deletions
diff --git a/hug b/hug new file mode 100755 index 0000000..a202f81 --- /dev/null +++ b/hug @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +echo "*hugs* ${1}" diff --git a/wave b/wave new file mode 100755 index 0000000..a78c49c --- /dev/null +++ b/wave @@ -0,0 +1,9 @@ +#!/usr/local/bin/lua + +math.randomseed(os.time()) +local rand=math.random(2) +if rand == 1 then + print("o/") +else + print("\\o") +end diff --git a/y b/y new file mode 100755 index 0000000..db15c4b --- /dev/null +++ b/y @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +N=$((1 + $RANDOM % 2)) + +case $N in + 1) + echo "y" + ;; + 2) + echo "HONK" + ;; +esac + |