From d1b098ccfdef418b711d27252aff0f3cf7c31b6f Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 22 Feb 2018 17:37:11 -0500 Subject: Add welcome message to ssh-command --- ssh-command.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ssh-command.sh b/ssh-command.sh index 3a24f68..f91c5b1 100644 --- a/ssh-command.sh +++ b/ssh-command.sh @@ -1,12 +1,23 @@ #!/bin/sh set -e -u +SSH_HOST=stream@ascii.town + if [ -z "${SSH_ORIGINAL_COMMAND:-}" ]; then + echo + echo 'Welcome to Twinch!' + echo + echo 'To view a public stream, run one of the following commands:' + echo + cd public for id in *; do - echo "ssh -t stream@ascii.town $id" + echo "ssh -t $SSH_HOST $id" done + echo + exit + else set $SSH_ORIGINAL_COMMAND case $1 in -- cgit 1.4.1 class='sub'>dontfiles
summary refs log tree commit diff
path: root/bin/man1/ptee.1 (unfollow)
Commit message (Expand)Author
2021-09-23Hide htop "function bar"June McEnroe
2021-09-23Allow FocusEvents in xtermJune McEnroe
2021-09-23Use NI_NUMERICSERVJune McEnroe
2021-09-23Make up build away from FreeBSDJune McEnroe
2021-09-23Add quickJune McEnroe
2021-09-23Add The HobbitJune McEnroe
2021-09-22Remove PSF fontsJune McEnroe
2021-09-22Remove Linux-specific utilitiesJune McEnroe
2021-09-22Call sandbox in CGI modeJune McEnroe
2021-09-22Support HTTP PUT in upJune McEnroe
2021-09-22Remove default faviconJune McEnroe
2021-09-21Use Z_FILTERED strategyJune McEnroe
2021-09-21Recalculate various lengths only as neededJune McEnroe
2021-09-21Rewrite pngo, add explicit optionsJune McEnroe
2021-09-16Fix /* **/ comment matchingJune McEnroe
2021-09-15Remove typer, add downgrade to READMEJune McEnroe
2021-09-15Set bot mode on downgradeJune McEnroe
2021-09-15Enter capsicum in downgradeJune McEnroe
2021-09-15Factor out common parts of downgrade messagesJune McEnroe
2021-09-14Add downgrade IRC botJune McEnroe
2021-09-14Sort by title if authors matchJune McEnroe
2021-09-13Swap-remove tags as they're foundJune McEnroe
2021-09-12Replace htagml regex with strncmpJune McEnroe
2021-09-11Also defer printing comment for lone close-parensJune McEnroe
2021-09-10Publish "git-comment"June McEnroe
2021-09-10Add git comment --pretty optionJune McEnroe
2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe
2021-09-08Up default min-repeat to 30 linesJune McEnroe
2021-09-08Handle dirty lines in git-commentJune McEnroe
2021-09-08Document and install git-commentJune McEnroe
2021-09-08Add repeat and all options to git-commentJune McEnroe
2021-09-08Add group threshold to git-commentJune McEnroe