From: Trent Huber Date: Sat, 8 Nov 2025 09:08:49 +0000 (-0500) Subject: INSTALL.md syntax highlighting X-Git-Url: https://trenthuber.com/code?a=commitdiff_plain;h=b48d3ee1905e3fc396887276f758797e368216c9;p=thus.git INSTALL.md syntax highlighting --- diff --git a/INSTALL.md b/INSTALL.md index 1fb950f..977b572 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -21,7 +21,7 @@ similar approach can be used for other shells). We'll need to modify the scripts that are executed at login and during an interactive session. For sh, the login configuration file is `.profile`. -```console +```sh # ~.profile ENV=$HOME/.shrc @@ -33,7 +33,7 @@ THUSLOGIN=-l `ENV` is used by sh as the path of the user's configuration file used for interactive sessions, in this case, `.shrc`. -```console +```sh # ~.shrc test -z "$ESCAPE" && echo $- | grep -q i && exec thus $THUSLOGIN @@ -51,19 +51,19 @@ thus. Since aliases take precedent over executables in the path, you could even define an alias to sh that runs a script that runs sh after defining `ESCAPE`. -```console +```sh # ~.sh.sh #! /usr/bin/env thus -set ESCAPE true +set ESCAPE escape env sh unset ESCAPE ``` And then the alias goes in the interactive config file for thus. -```console +```sh # ~.thusrc alias sh "~.sh.sh"