Replace lptag by prompt_tag

prompt_tag is more consistent with the other prompt_* functions.
This commit is contained in:
nojhan 2013-03-11 23:05:10 +01:00
parent 9a1e779d11
commit 3d711323d5
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ changes have been made and the number of pending commits, if any;
for fossil, $ for simple user, a red # for root; for fossil, $ for simple user, a red # for root;
* if you ask for, the liquidprompt will be replicated in your terminal window's * if you ask for, the liquidprompt will be replicated in your terminal window's
title (without the colors); title (without the colors);
* you can easily add a prefix tag to your prompt, by invoking `lptag MYTAG`. * you can easily add a prefix tag to your prompt, by invoking `prompt_tag MYTAG`.
You can temporarily deactivate the liquid prompt and come back to your previous You can temporarily deactivate the liquid prompt and come back to your previous
one by typing `prompt_off`. Use `prompt_on` to bring it back. You can deactivate one by typing `prompt_off`. Use `prompt_on` to bring it back. You can deactivate
@ -161,10 +161,10 @@ You can prefix the `LP_PS1` variable with anything you want using the
LP_PS1_PREFIX="\[\e]0;\u@\h: \w\a\]" LP_PS1_PREFIX="\[\e]0;\u@\h: \w\a\]"
Note: the `lptag` function is convenient way to add a prefix. You can thus add Note: the `prompt_tag` function is convenient way to add a prefix. You can thus add
a keyword to your different terminals: a keyword to your different terminals:
[:~/code/liquidprompt] develop ± lptag mycode [:~/code/liquidprompt] develop ± prompt_tag mycode
mycode [:~/code/liquidprompt] develop ± mycode [:~/code/liquidprompt] develop ±

View File

@ -1337,7 +1337,7 @@ _lp_set_prompt()
fi fi
} }
lptag() prompt_tag()
{ {
export LP_PS1_PREFIX=$(_lp_sr "$1") export LP_PS1_PREFIX=$(_lp_sr "$1")
} }