GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cerebralnomad/cli_recipe_creator: Shell script to create recipe template and open in text editor

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
recipe.sh
recipe.sh
 
 

Repository files navigation

cli_recipe_creator

Shell script to create recipe template and open in text editor

This script takes the name of the recipe "My New Recipe" and creates a preformatted blank recipe file in the current working directory and opens it in an editor.

The format of the file is:

===============================

<Recipe Title>

Ingredients

Directions

================================

The recipe title is converted to lower case and the spaces to underscores for use as the file name.

The file will be opened first in Kate (if present) If not, then Pluma (if present) If not then gedit (if present)

If none of the gui editors are found it defaults to nano.

You can force the use of nano or vim with the --nano and --vim flags

Usage:

recipe.sh 'My new recipe' - creates the file and opens in one of the editors above

recipe.sh --vim 'My new recipe' - creates the file and opens with vim

recipe.sh --nano 'My new recipe' - creates the file and opens with nano

recipe.sh -h - shows the help text and exits

About

Shell script to create recipe template and open in text editor

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.