Skip to content

Commit

Permalink
Add lib/profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
1g0rb0hm committed Nov 26, 2020
1 parent a836554 commit dc252ea
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ term% hget https://golang.org/dl/go1.14.7.src.tar.gz | gunzip -c | tar x
Create **target** installation directory and **bind** downloaded version to that directory:
```sh
term% mkdir -p /sys/lib/go/amd64-1.14.7
term% mkdir -p /sys/lib/go/amd64-1.14.7
term% bind -c go /sys/lib/go/amd64-1.14.7
```
Expand Down
45 changes: 45 additions & 0 deletions lib/profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
bind -qa $home/bin/rc /bin
bind -qa $home/bin/$cputype /bin
font=/lib/font/bit/lucidasans/typeunicode.9.font
GO111MODULE=on
switch($service){
case terminal
bind -a $home/go/bin /bin
webcookies
webfs
plumber
echo -n accelerated > '#m/mousectl'
echo -n 'res 3' > '#m/mousectl'
prompt=('term% ' ' ')
fn term%{ $* }
cat $home/lib/ssh/key > /mnt/factotum/ctl
rio -i riostart
case cpu
bind /mnt/term/dev/cons /dev/cons
bind -q /mnt/term/dev/consctl /dev/consctl
>[2] /dev/null {
cp /dev/sysname /mnt/term/dev/label
if(wsys=`{cat /mnt/term/env/wsys})
wsys=/mnt/term^$wsys
}
bind -a /mnt/term/dev /dev
bind -a $home/go/bin /bin
prompt=('cpu% ' ' ')
fn cpu%{ $* }
if(! test -e /mnt/term/dev/wsys){
# call from drawterm
if(test -e /mnt/term/dev/secstore){
auth/factotum -n
read -m /mnt/term/dev/secstore >/mnt/factotum/ctl
echo >/mnt/term/dev/secstore
}
if not
auth/factotum
webcookies
webfs
plumber
rio
}
case con
prompt=('cpu% ' ' ')
}

0 comments on commit dc252ea

Please sign in to comment.