summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa2024-01-03 10:30:39 +0000
committernoa2024-01-03 10:30:39 +0000
commit7c409d04d65df2d6c4d8078aaf6d01187034a967 (patch)
treeac2abde98a0e789bae2f7cb934c9ea2ad413bff9
parent28d765eb93836afa5b0a74fcc8467a0a52415309 (diff)
Add miscellaneous commands
-rwxr-xr-xhug3
-rwxr-xr-xwave9
-rwxr-xr-xy13
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
+