Merge branch '9fans:master' into wayland
This commit is contained in:
commit
464c522746
4 changed files with 20 additions and 9 deletions
11
bin/man
11
bin/man
|
|
@ -18,6 +18,7 @@ fn roff {
|
||||||
}
|
}
|
||||||
if not {
|
if not {
|
||||||
Nflag=-N
|
Nflag=-N
|
||||||
|
Lflag='-rL1000i'
|
||||||
}
|
}
|
||||||
if(~ $x *eqn*)
|
if(~ $x *eqn*)
|
||||||
preproc=($preproc eqn)
|
preproc=($preproc eqn)
|
||||||
|
|
@ -26,15 +27,15 @@ fn roff {
|
||||||
|
|
||||||
switch($#preproc) {
|
switch($#preproc) {
|
||||||
case 0
|
case 0
|
||||||
{echo -n $FONTS; cat $2< /dev/null} | troff $Nflag -$MAN
|
{echo -n $FONTS; cat $2< /dev/null} | troff $Nflag $Lflag -$MAN
|
||||||
case 1
|
case 1
|
||||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc | troff $Nflag -$MAN
|
{echo -n $FONTS; cat $2< /dev/null} | $preproc | troff $Nflag $Lflag -$MAN
|
||||||
case 2
|
case 2
|
||||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | troff $Nflag -$MAN
|
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | troff $Nflag $Lflag -$MAN
|
||||||
case 3
|
case 3
|
||||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | troff $Nflag -$MAN
|
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | troff $Nflag $Lflag -$MAN
|
||||||
case *
|
case *
|
||||||
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | $preproc(4) | troff $Nflag -$MAN
|
{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | $preproc(4) | troff $Nflag $Lflag -$MAN
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,16 @@ fshell=$(finger $(whoami) | sed -n 's/.*Shell: //p' | sed 1q)
|
||||||
SHELL=${fshell:-$SHELL}
|
SHELL=${fshell:-$SHELL}
|
||||||
PLAN9=${PLAN9:-/usr/local/plan9}
|
PLAN9=${PLAN9:-/usr/local/plan9}
|
||||||
cd $HOME
|
cd $HOME
|
||||||
|
arch=x86_64
|
||||||
|
if arch -arch arm64 date >/dev/null 2>&1; then
|
||||||
|
arch=arm64
|
||||||
|
fi
|
||||||
case "$SHELL" in
|
case "$SHELL" in
|
||||||
*/rc)
|
*/rc)
|
||||||
echo '
|
echo '
|
||||||
if(! ~ $PLAN9/bin $path)
|
if(! ~ $PLAN9/bin $path)
|
||||||
path=($path $PLAN9/bin)
|
path=($path $PLAN9/bin)
|
||||||
$PLAN9/bin/9term -l -W600x800 &
|
arch -arch '$arch' $PLAN9/bin/9term -l -W600x800 &
|
||||||
' | $SHELL -l
|
' | $SHELL -l
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
@ -24,6 +28,6 @@ if ! [[ :$PATH: =~ :$PLAN9/bin: ]]
|
||||||
then
|
then
|
||||||
PATH=$PATH:$PLAN9/bin
|
PATH=$PATH:$PLAN9/bin
|
||||||
fi
|
fi
|
||||||
$PLAN9/bin/9term -l -W600x800 &
|
arch -arch $arch $PLAN9/bin/9term -l -W600x800 &
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
if [ -e ~/.bashrc ] ; then
|
if [ -e ~/.bashrc ] ; then
|
||||||
. ~/.bashrc
|
. ~/.bashrc
|
||||||
fi
|
fi
|
||||||
|
arch=x86_64
|
||||||
|
if arch -arch arm64 date >/dev/null 2>&1; then
|
||||||
|
arch=arm64
|
||||||
|
fi
|
||||||
PLAN9=${PLAN9:-/usr/local/plan9}
|
PLAN9=${PLAN9:-/usr/local/plan9}
|
||||||
|
|
||||||
bin=$PLAN9/bin
|
bin=$PLAN9/bin
|
||||||
|
|
@ -10,5 +14,5 @@ IFS=$'\n'
|
||||||
|
|
||||||
for file in $($bin/macargv)
|
for file in $($bin/macargv)
|
||||||
do
|
do
|
||||||
$bin/macedit "$file"
|
arch -arch $arch $bin/macedit "$file"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -479,7 +479,9 @@
|
||||||
.if t \{.ds R ®
|
.if t \{.ds R ®
|
||||||
.ds S \s\n()S
|
.ds S \s\n()S
|
||||||
..\}
|
..\}
|
||||||
.if n \{.nr )L 11i
|
.if n \{.ie \nL<=0 .nr )L 11i
|
||||||
|
.el \{.nr )L \nLu
|
||||||
|
.nr V 0\}
|
||||||
.nr LL 6.5i
|
.nr LL 6.5i
|
||||||
.nr )O .463i
|
.nr )O .463i
|
||||||
.if '\*(.T'think' \{.nrLL 80n
|
.if '\*(.T'think' \{.nrLL 80n
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue