Compare commits

...

7 Commits
trunk ... trunk

Author SHA1 Message Date
gbmor 6532e13f7a Merge pull request 'Improve command substitution' (#7) from rjc/wiki:command_substitution into trunk
Reviewed-on: institute/wiki#7
2023-09-05 14:50:18 +00:00
Raf Czlonka 4e2c82f4fb Improve command substitution
- .kshrc file isn't special - $ENV can point to any file
- use $MAIL since is available by default
- replace backticks ('`') with '$()' - they both nest and look better
- be consistent about using `[` or `test` - chose the latter here
- use `-n` for the second test case in order to keep the examples'
  logic the same:

	[...] && echo '* '
2023-07-11 16:13:32 +01:00
Raf Czlonka 0a2509e3e0 Fix test case 2023-07-11 16:03:17 +01:00
gbmor 6081430382 Merge pull request 'Add remote-mail page' (#5) from Charadon/wiki:trunk into trunk
Reviewed-on: institute/wiki#5
2022-10-25 04:14:02 +00:00
gbmor aa967fbac9
note about kiwi/gamja web irc clients 2022-10-25 00:05:35 -04:00
gbmor 61a3efa67e
note about local catgirl irc config 2022-10-24 23:59:52 -04:00
phoebos ff72e74919 irc: add note for connecting with catgirl
Signed-off-by: gbmor <ben@gbmor.org>
2022-10-24 23:39:48 -04:00
2 changed files with 16 additions and 8 deletions

View File

@ -15,6 +15,9 @@ such as `irssi`, the following server information will apply:
* Port 6667
* No TLS
If you're using the `catgirl` client, you can just run `catgirl local`.
This uses the default system config. See `man 1 catgirl` if you want a custom config.
Don't forget to `/join #institute` and `/join #meta`.
**NOTE:** You must register with `nickserv` to talk in `#meta`:
@ -74,11 +77,16 @@ And if you're using `irssi`
/connect -tls -tls_verify irc.tilde.chat 6697
```
The tildeverse IRC network also runs an instance of `The Lounge`, a
web-based IRC client that allows you to stay connected even when you're
away. It's available at:
Or from `catgirl`:
* [https://web.tilde.chat](https://web.tilde.chat)
```
catgirl -h institute.tilde.chat -n <nick>
```
The tilde.chat IRC network also runs two web clients:
* [gamja](https://tilde.chat/gamja)
* [kiwi](https://tilde.chat/kiwi)
Join us on the tildeverse IRC network and socialize with other tilde users!

View File

@ -11,7 +11,7 @@ them up on this shell. So here are some things I do on my local machine
that work here:
To get the shell to tell you when you have new mail, after command
executions, add this to your `.profile` or your `.kshrc` files
executions, add this to your `.profile` or your `$ENV` files
(or other shell RC file) in your home directory.
```
@ -20,16 +20,16 @@ export MAILCHECK=0
And, if you want, you can have a persistent notification when
you have un-incorporated mail, or more specifically, when your
`/var/mail/<username>` isn't empty.
`$MAIL` (`/var/mail/$USER` by default)` isn't empty.
```
PS1="\$([-s /var/mail/`whoami` ] && echo '* ')$PS1"
PS1="$(test -s $MAIL ] && echo '* ')$PS1"
```
For maildir try this:
```
PS1="$(test -z "`ls -A $HOME/Maildir/new`" || echo '* ')$PS1"
PS1="$(test -n "$(ls -A $HOME/Maildir/new)" && echo '* ')$PS1"
```
This works in `/bin/ksh`, I can't speak for other shells.