1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-01 18:39:26 +00:00

[prompt] Rename helper function promptpwd to prompt-pwd for consistency

Changes:
* In prezto, function names are hyphenated ('-') by convention,
  rename `promptpwd` to `prompt-pwd` accordingly.
* Unset local variable `current_pwd` proactively.
* Tweak additional documentation for `prompt-pwd`.
This commit is contained in:
Indrajit Raychaudhuri
2017-07-20 19:08:19 -05:00
committed by Indrajit Raychaudhuri
parent ac628c9059
commit 17a59bada7
6 changed files with 23 additions and 7 deletions

View File

@ -82,7 +82,7 @@ function prompt_sorin_precmd {
unsetopt XTRACE KSH_ARRAYS
# Format PWD.
_prompt_sorin_pwd=$(promptpwd)
_prompt_sorin_pwd=$(prompt-pwd)
# Define prompts.
RPROMPT='${editor_info[overwrite]}%(?:: %F{1}⏎%f)${VIM:+" %B%F{6}V%f%b"}'