summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/filebrowser/backend-ps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'share/hackvr/examples/filebrowser/backend-ps.sh')
-rwxr-xr-xshare/hackvr/examples/filebrowser/backend-ps.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/hackvr/examples/filebrowser/backend-ps.sh b/share/hackvr/examples/filebrowser/backend-ps.sh
new file mode 100755
index 0000000..b06ff99
--- /dev/null
+++ b/share/hackvr/examples/filebrowser/backend-ps.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#give a list of files.
+#wait for a selection on stdin
+#cd or start that file
+#repeat.
+while true;do
+#not sure why this needs to be printed to show up every time.
+ ps | tail -n+2
+ read -r selection
+ echo $selection
+ echo
+done