fix typos in docs and comments

pull/2415/head
Alejandro Criado-Pérez 1 year ago committed by GitHub
parent f851f41fc1
commit 717f9a1881
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1187,7 +1187,7 @@ completes, Powerlevel10k refreshes prompt with new information, this time with c
When using *Rainbow* style, Git status is displayed as black on grey while it's still being
computed. Depending on the terminal color palette, this may be difficult to read. In this case you
might want to change the background color to something ligher for more contrast. To do that, open
might want to change the background color to something lighter for more contrast. To do that, open
`~/.p10k.zsh`, search for `POWERLEVEL9K_VCS_LOADING_BACKGROUND`, uncomment it if it's commented out,
and change the value.
@ -2038,4 +2038,4 @@ Powerlevel10k prompt.
Most notably, [libgit2 does not support `skipHash`](https://github.com/libgit2/libgit2/issues/6531).
If you see incorrect git status in prompt, run `git config -l` and check whether `skipHash` is
enabled. If it is, consider disabling it. Keep in mind that `skipHash` may be implicitly enabled
when activating ceratin git features, such as `manyFiles`.
when activating certain git features, such as `manyFiles`.

@ -532,7 +532,7 @@ _p9k_get_icon() {
_p9k_translate_color() {
if [[ $1 == <-> ]]; then # decimal color code: 255
_p9k__ret=${(l.3..0.)1}
elif [[ $1 == '#'[[:xdigit:]]## ]]; then # hexademical color code: #ffffff
elif [[ $1 == '#'[[:xdigit:]]## ]]; then # hexadecimal color code: #ffffff
_p9k__ret=${${(L)1}//ı/i}
else # named color: red
# Strip prifixes if there are any.
@ -2420,7 +2420,7 @@ function _p9k_cached_cmd() {
}
################################################################
# Segment to diplay Node version
# Segment to display Node version
prompt_node_version() {
_p9k_upglob package.json -.
local -i idx=$?
@ -3718,7 +3718,7 @@ function +vi-hg-bookmarks() {
if [[ -n "${hgbmarks[@]}" ]]; then
hook_com[hg-bookmark-string]=" $(print_icon 'VCS_BOOKMARK_ICON')${hgbmarks[@]}"
# To signal that we want to use the sting we just generated, set the special
# To signal that we want to use the string we just generated, set the special
# variable `ret' to something other than the default zero:
ret=1
return 0
@ -3962,7 +3962,7 @@ function _p9k_vcs_render() {
fi
# It's weird that removing vcs-detect-changes from POWERLEVEL9K_VCS_GIT_HOOKS gets rid
# of the GIT icon. That's what vcs_info does, so we do the same in the name of compatiblity.
# of the GIT icon. That's what vcs_info does, so we do the same in the name of compatibility.
_p9k_vcs_icon
icon=$_p9k__ret
fi

Loading…
Cancel
Save