skratch/README.md

38 lines
762 B
Markdown
Raw Normal View History

# Skratch
2026-03-04 23:30:40 -08:00
A cli program to quickly create and edit temporary files
2026-03-04 23:30:40 -08:00
Requirements:
2026-03-20 18:26:21 -07:00
python3 > 3.6, or a C compiler.
## Python Installation:
mv skratch.py /usr/local/bin/skratch
chmod +x /usr/local/bin/skratch
2026-03-04 23:30:40 -08:00
## C Installation:
gcc skratch.c -o skratch
mv skratch /usr/local/bin/skratch
chmod +x /usr/local/bin/skratch
## Post Installation
Set an env variable for $EDITOR and/or $VISUAL in .bashrc
2026-03-04 23:30:40 -08:00
export EDITOR=vi
export VISUAL=geany
2026-03-05 14:55:59 -08:00
## Usage:
`skratch` creates a random file in .skratch and opens it in the EDITOR
2026-03-05 01:47:22 -08:00
2026-03-05 14:33:08 -08:00
`<filename>` opens or creates a file with a specific name in ~/.skratch
2026-03-05 01:47:22 -08:00
2026-03-05 14:33:08 -08:00
`-c` clears/deletes all files in ~/.skratch
2026-03-05 01:47:22 -08:00
2026-03-05 14:33:08 -08:00
`-l` lists files in ~/.skratch
2026-03-05 01:47:22 -08:00
2026-03-05 14:55:59 -08:00
`-s` adds a suffix to the file
2026-03-05 14:33:08 -08:00
`-v` uses the VISUAL editor