Add sample startup scripts

This commit is contained in:
Stephen Heumann 2015-01-01 13:19:05 -06:00
parent ba2aa925bc
commit 63f74a5ee7
4 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,7 @@ clean:
.PHONY: chtyp
chtyp:
chtyp -l cc include/*.h coreutils/*.c libbb/*.c shell/*.c shell/*.h
chtyp -t txt LICENSE README* Makefile* notes/*
chtyp -t txt LICENSE README* Makefile* notes/* etc/*
.PHONY: build
.SEQUENTIAL: build

View File

@ -75,6 +75,9 @@ are present:
`.`, which will be used preferentially if present, but these names are not
compatible with ProDOS filesystems.)
The `etc` directory contains sample `hushenv` and `profile` scripts, suitable
for installation in `/etc` or in your home directory.
License
-------
Hush is licensed under the GNU General Public License version 2, contained in

1
etc/hushenv Normal file
View File

@ -0,0 +1 @@
# Sample hushenv file for GNO. # Can be installed as /etc/hushenv or $HOME/hushenv. # Define standard commands that don't exist as binaries in GNO 2.0.6 rm () { cp -p rm $@; } mv () { cp -p mv $@; } make () { dmake $@; } # Use gsh to run a few of its builtins that hush doesn't have edit () { gsh edit $@; } setdebug () { gsh setdebug $@; }

1
etc/profile Normal file
View File

@ -0,0 +1 @@
# Sample hush profile file for GNO. # Can be installed as /etc/profile or $HOME/profile. # Based on GNO 2.0.6 /etc/glogin file, with syntax adjustments for hush. # # Setup the other prefixes to emulate ORCA for the benefit of utilities # If you're using ORCA 2.0 stuff, be sure to set prefixes 13-17 also # prefix 31 \* prefix 13 /lib prefix 14 /tmp prefix 15 /lang/orca/shell prefix 16 /lang/orca/languages prefix 17 /lang/orca/utilities prefix 2 13 prefix 3 14 prefix 4 15 prefix 5 16 prefix 6 17 if [ -z "$TERM" -o "$TERM" == "gno" ]; then export TERM=gnocon fi # Versions of gsh prior to 2.0d4 always parsed the PATH environment variable # backwards. As of v2.0d4, gsh will parse PATH backward if and only if the # OLDPATHMODE environment variable is set. # # For the moment, we still have gsh using its old behavior because some # programs (notably dmake(1)) are currently compiled to expect this behavior. # After these programs are updated, this environment variable should no longer # be set. Hush also currently parses PATH backwards, and ignores OLDPATHMODE. export OLDPATHMODE=1 # You may want to use /lang/orca/shell/editor for EDITOR if you have it. export EDITOR=/bin/vi export MAKESTARTUP=/usr/lib/startup.mk export MANPATH=/usr/man:/usr/local/man:/usr/orca/man export TMACDIR=/usr/lib/tmac export PATH="/usr/orca/bin /usr/bin /bin /usr/local/bin" export CCEMULATE=1