2026-03-04 23:11:56 -08:00
|
|
|
# skratch
|
|
|
|
|
|
2026-03-05 01:31:00 -08:00
|
|
|
# Skratch
|
2026-03-04 23:30:40 -08:00
|
|
|
|
2026-03-05 01:31:00 -08:00
|
|
|
A cli program to quickly create and edit temporary files
|
2026-03-04 23:30:40 -08:00
|
|
|
|
2026-03-05 01:31:00 -08:00
|
|
|
Requirements:
|
|
|
|
|
python3 > 3.6
|
|
|
|
|
|
|
|
|
|
## Installation:
|
|
|
|
|
|
|
|
|
|
mv skratch.py /usr/local/bin/skratch
|
|
|
|
|
chmod +x /usr/local/bin/skratch
|
2026-03-04 23:30:40 -08:00
|
|
|
|
|
|
|
|
set an env variable for $EDITOR and/or $VISUAL in .bashrc
|
|
|
|
|
|
2026-03-05 01:31:00 -08:00
|
|
|
export EDITOR=vi
|
|
|
|
|
export VISUAL=geany
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
`skratch` creates a random file in .skratch and opens it in the EDITOR
|
|
|
|
|
`-c` clears/deletes all files in .skratch
|
|
|
|
|
`-l` lists files in .skratch
|
|
|
|
|
`-o <filename>` opens a specific file
|
|
|
|
|
`-v` opens the VISUAL editor
|