Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
Rys Sommefeldt 2014-11-14 20:12:21 +00:00 committed by Sorin Ionescu
parent 7a92046c86
commit 3dd4cbc3c0

View file

@ -46,7 +46,7 @@ The most basic example of this function can be seen below.
If the `prompt_name_setup` function is customizable via parameters, a help If the `prompt_name_setup` function is customizable via parameters, a help
function **should** be defined. The user will access it via `prompt -h name`. function **should** be defined. The user will access it via `prompt -h name`.
The most basic example of this function can be seen bellow. The most basic example of this function can be seen below.
function prompt_name_help { function prompt_name_help {
cat <<EOH cat <<EOH
@ -63,7 +63,7 @@ The most basic example of this function can be seen bellow.
If the `prompt_name_setup` function is customizable via parameters, a preview If the `prompt_name_setup` function is customizable via parameters, a preview
function **should** be defined. The user will access it via `prompt -p name`. function **should** be defined. The user will access it via `prompt -p name`.
The most basic example of this function can be seen bellow. The most basic example of this function can be seen below.
function prompt_name_preview { function prompt_name_preview {
if (( $# > 0 )); then if (( $# > 0 )); then
@ -91,7 +91,7 @@ a function before you calling it.
**Do not register hook functions. They will be registered by the `prompt` function.** **Do not register hook functions. They will be registered by the `prompt` function.**
The most basic example of this function can be seen bellow. The most basic example of this function can be seen below.
function prompt_name_precmd { function prompt_name_precmd {
if (( $+functions[git-info] )); then if (( $+functions[git-info] )); then