Creating texts and publishing
New
To create new text files, use txt new
.
For example:
$ txt new "お会いできてうれしいです"
It's important to enclose the title with quotation marks if it contains spaces (or just for clarity).
The command will return the filename of the new text, which contains its ID.
Use your favorite text editor to open it.
Text files will be stored in either:
- The directory pointed at by
$TXTDIR
if defined $HOME/.local/share/texts
, if directory exists- The current working directory, if all else fails
The simplest approach is to put all texts in the $HOME/.local/share/texts
directory and override that on occasion with $TXTDIR
.
For example:
$ env TXTDIR=${PWD} txt new "お会いできてうれしいです"
Last modified
6 weeks ago
Last modified on Apr 28, 2025, 2:46:01 AM
Note:
See TracWiki
for help on using the wiki.