ref: b03e483d77053c0d19c05f0fd2d87b6a083e8de2
parent: 6000627a39a84a28590b12a1cbc5f56272664f95
author: kvik <[email protected]>
date: Sun Jul 14 15:02:20 EDT 2019
add x/cd
--- /dev/null
+++ b/cd
@@ -1,0 +1,2 @@
+#!/bin/rc
+echo cd `{x/path -r}
--- a/mkfile
+++ /dev/null
@@ -1,16 +1,0 @@
-BIN=$home/bin/rc
-MAN=/sys/man/1
-RC=path run mnt
-
-install:V: $MAN/x rc
-
-$MAN/x: x.man
- cp x.man $MAN/x
-
-rc:V:
- mkdir -p $BIN/x
- for(f in $RC) cp $f $BIN/x
-
-uninstall:V:
- rm -rf $BIN/x
- rm -f $MAN/x
--- a/mnt
+++ /dev/null
@@ -1,27 +1,0 @@
-#!/bin/rc
-
-rfork e
-
-fn usage {
- echo usage: x/mnt [[user@]host] >[1=2]
- exit usage
-}
-
-users=(root $user)
-host=$1
-if(~ $host '')
- host=`{x/path -l}
-if(~ $host '')
- usage
-if(~ $host *@*){
- x=`'@'{echo -n $host}
- users=$x(1)
- host=$x(2)
-}
-for(u in $users){
- userhost=$u@$host
- if(! test -e /srv/$userhost)
- sshfs -M -r / -s $userhost $userhost
- mount -c /srv/$userhost /x/$userhost
-}
-