browse.sh: run terminal in directory - randomcrap - random crap programs of varying quality
(HTM) git clone git://git.codemadness.org/randomcrap
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 70ddb35dd0e2e66bb5e62e260dc9a2d4fde45f21
(DIR) parent c8e66251a5e68ffe93d49a0814db0c6ef1aa8b9a
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 19 Nov 2025 22:55:38 +0100
browse.sh: run terminal in directory
Diffstat:
M browse.sh | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/browse.sh b/browse.sh
@@ -7,6 +7,7 @@ APPS="$HOME/.config/scripts/runmenu/list.sh"
listentries() {
echo '[run mpv on this directory]'
echo '[run sxiv on this directory]'
+ echo '[run terminal in this directory]'
echo ""
echo "../"
@@ -55,6 +56,8 @@ while :; do
mpv .;;
"[run sxiv"*)
sxiv .;;
+ "[run terminal"*)
+ st;;
*)
cmd=$($APPS | $MENU $* -p "Run with:")
test "$cmd" = "" && exit 1