A cli program to create and edit temporary files
Find a file
2026-03-21 15:08:29 -07:00
LICENSE Initial commit 2026-03-04 23:11:56 -08:00
README.md Update README.md 2026-03-21 14:23:35 -07:00
skratch.c added more some comments 2026-03-21 15:08:29 -07:00
skratch.py return consistent types from list_all() 2026-03-05 15:00:58 -08:00

Skratch

A cli program to quickly create and edit temporary files

Requirements: python3 > 3.6, or a C compiler.

Python Installation:

mv skratch.py /usr/local/bin/skratch
chmod +x /usr/local/bin/skratch

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

export EDITOR=vi
export VISUAL=geany

Usage:

skratch creates a random file in .skratch and opens it in the EDITOR

<filename> opens or creates a file with a specific name in ~/.skratch

-c clears/deletes all files in ~/.skratch

-l lists files in ~/.skratch

-s adds a suffix to the file

-v uses the VISUAL editor