shithub: rc

Download patch

ref: ae16de57e6157c784d2857813c400c7a7dcb857b
parent: 292d2ac8ea7c89a67d5551656dbe4b98449f2a30
author: qwx <qwx@sciops.net>
date: Sun Sep 11 00:45:51 EDT 2022

s: simple window command not tied to file + don't store menu items here

--- a/bin/s
+++ b/bin/s
@@ -48,6 +48,11 @@
 	fun $*
 }
 
+# ^w [cmd]     # open window in cwd
+fn w{
+	echo !exec window -m -minx 0 -miny 0 -dx 600 -dy 600 $*
+}
+
 # from kvik's rc/rwin
 # ^W [cmd]     # open window in current file's directory
 fn W{
@@ -179,13 +184,6 @@
 	echo 'x/^(#|\/\/) ?/d'
 }
 
-# common menu items
-cat <<!
-M ^T
-M ^W
-M ^R mk install
-M |fmt -l 82
-!
-# more common menu items
+# source common menu items
 if(test -f $home/lib/jam)
 	. $home/lib/jam