DEV Community

Discussion on: Bash function to add TILs from the command line

Collapse
 
moopet profile image
Ben Sinclair

That's neat.

I might suggest using the EDITOR variable to pick up the user's preferred editor, and fall back to good ol' Vim if it's not set:

${EDITOR:-vim} + "$TIL_FILE"