shithub: rc

Download patch

ref: d7a1ee80efc0872f929961f487ca6ab30e97d87d
parent: 6aafded00d642b6e4dff49498843ae8d127ccabe
author: qwx <qwx@sciops.net>
date: Wed Nov 11 23:52:25 EST 2020

move t to its own script and start ssh by default

--- a/fn
+++ b/fn
@@ -75,8 +75,6 @@
 # display shuffled list of images
 fn shi{ page `'
 '{lr -Q $* | shl | sed 5000q} }
-# default vt(1) params
-fn t{ vt -2bf /lib/font/bit/fixed/unicode.6x10.font }
 # launch graphical program on a unix host
 fn ff{ A=$*(2-); ssh $user@$1 'DISPLAY=:0 '^$"A^' >/dev/null 2>&1'; A=() }
 # defunct linux script shortcut
--- /dev/null
+++ b/t
@@ -1,0 +1,4 @@
+#!/bin/rc
+if(~ $#* 1)
+	*=(ssh tcp!$1!x)
+vt -2bf /lib/font/bit/fixed/unicode.6x10.font $*