missingnewline

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 8 Imported by: 0

README

missingnewline

Prints a "🚫" character and adds a newline if the cursor is not in column 1. You can use it in your shell prompt to tidy up after commands that output some text without a trailing newline.

You can install this into your ~/.bashrc, for example:

declare -a PROMPT_COMMAND
if [ -x "${HOME}/go/bin/missingnewline" ]
then
  PROMPT_COMMAND+=("${HOME}/go/bin/missingnewline")
fi

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL