shithub: rc

Download patch

ref: c894944363451d60c1e0a8f5e55f3b050846bfd7
parent: 5bd6573cc5519ae54ee4132758602dc54c38c804
author: qwx <qwx@sciops.net>
date: Thu Mar 3 02:11:01 EST 2022

add k: start workspace

--- /dev/null
+++ b/bin/k
@@ -1,0 +1,11 @@
+#!/bin/rc
+if(! ~ $#* 1 || ! test -f /bin/work/$1){
+	echo usage: $0 workspace >[1=2]
+	exit usage
+}
+. /tmp/sizes.$sysname
+x=/bin/work/$1
+window -hide -r $briorect $x
+sleep 2
+last=`{cd /dev/wsys; ls | sort -n | tail -1}
+echo -n `{basename $x} >/dev/wsys/$last/label