From dcc04cba2446a7bfe8af8268229f3ca28e228b13 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 21 Nov 2016 03:08:58 -0600 Subject: added an example use of hackvr with the filebrowser dir. updated a bunch of stuff in hackvr needed to that that filebrowser working. added a multicast example what uses mcast program in my misc repo. updated obj2hackvr to require a filename as argument instead of using stdin --- filebrowser/filebrow.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 filebrowser/filebrow.sh (limited to 'filebrowser/filebrow.sh') diff --git a/filebrowser/filebrow.sh b/filebrowser/filebrow.sh new file mode 100755 index 0000000..ef6911a --- /dev/null +++ b/filebrowser/filebrow.sh @@ -0,0 +1,16 @@ +#!/bin/bash +#give a list of files. +#wait for a selection on stdin +#cd or start that file +#repeat. +while true;do + echo + echo .* * | tr ' ' '\n' + read -r selection + if [ -f "$selection" ];then + xdg-open "$selection" #good enough? + fi + if [ -d "$selection" ];then + cd "$selection" + fi +done -- cgit v1.2.3