diff --git a/Makefile.mk b/Makefile.mk index 4dc3bbb8f..9a9c11458 100644 --- a/Makefile.mk +++ b/Makefile.mk @@ -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 diff --git a/README.md b/README.md index df1308397..0595979b0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/etc/hushenv b/etc/hushenv new file mode 100644 index 000000000..2b28cc90f --- /dev/null +++ b/etc/hushenv @@ -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 $@; } \ No newline at end of file diff --git a/etc/profile b/etc/profile new file mode 100644 index 000000000..661bc62ce --- /dev/null +++ b/etc/profile @@ -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 \ No newline at end of file