Skip to content

Commit 1e760af

Browse files
committed
add README.md
1 parent 29f0ffe commit 1e760af

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

README.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# tabssh
2+
3+
[idk](https://twitter.com/rsnous/status/1365106287080472579)
4+
5+
Uses [TabFS](https://github.com/osnr/TabFS) and
6+
[gilderlabs/ssh](https://twitter.com/jf/status/1352012743600062465).
7+
8+
Set your TabFS mount path in `tabssh.go`.
9+
10+
```
11+
$ go run tabssh.go
12+
```
13+
14+
and
15+
16+
```
17+
$ ssh -o StrictHostKeyChecking=no localhost -p 2222
18+
```
19+
20+
(you can set a fun hostname in `~/.config/ssh`:
21+
```
22+
Host last-focused-tab.safari.localhost
23+
HostName localhost
24+
Port 2222
25+
LogLevel ERROR
26+
StrictHostKeyChecking no
27+
UserKnownHostsFile /dev/null
28+
```
29+
)
30+
31+
## ideas
32+
33+
a hack would be to make it dispatch to tab depending on provided username, like how
34+
[their Docker
35+
example](https://github.com/gliderlabs/ssh/tree/master/_examples/ssh-docker)
36+
dispatches to process (ssh `jq@localhost` runs `jq`)
37+
38+
but really, the _right_ way to do it would be to make it so that
39+
`safari.localhost` is a hostname that actually lets you talk to
40+
Safari, and `last-focused-tab.safari.localhost` is a hostname that
41+
actually lets you talk to the last focused tab.
42+
43+
could you make a virtual network or something to do that? (where each
44+
tab is a host on the virtual network) I mean, that feels
45+
philosophically right; [tabs are virtual
46+
computers](https://twitter.com/rsnous/status/1352014584731734016), so
47+
maybe they should be network-addressable like your real computer is
48+
(and maybe other things should be network-addressable that way too --
49+
individual applications, documents, etc).
50+
51+
like 'port numbers' feel kinda like they unnaturally promote one level
52+
of computer, the physical one on your desk that has a Wi-Fi chip, and
53+
hide the computers nested inside it (such as each of your browser
54+
tabs)

0 commit comments

Comments
 (0)