|
|
@ -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 |
|
|
|