mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-11-20 03:32:36 +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:
committed by
Indrajit Raychaudhuri
parent
ac628c9059
commit
17a59bada7
@@ -16,7 +16,7 @@ prompt_damoekri_precmd() {
|
||||
unsetopt XTRACE KSH_ARRAYS
|
||||
|
||||
# Format PWD.
|
||||
_prompt_damoekri_pwd=$(promptpwd)
|
||||
_prompt_damoekri_pwd=$(prompt-pwd)
|
||||
|
||||
# Get Git repository information.
|
||||
if (( $+functions[git-info] )); then
|
||||
|
||||
Reference in New Issue
Block a user