1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-14 00:50:08 +00:00

fix typos in docs and comments

This commit is contained in:
Alejandro Criado-Pérez 2023-08-10 09:31:37 +02:00 committed by GitHub
parent f851f41fc1
commit 717f9a1881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -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 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 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, `~/.p10k.zsh`, search for `POWERLEVEL9K_VCS_LOADING_BACKGROUND`, uncomment it if it's commented out,
and change the value. and change the value.
@ -2038,4 +2038,4 @@ Powerlevel10k prompt.
Most notably, [libgit2 does not support `skipHash`](https://github.com/libgit2/libgit2/issues/6531). 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 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 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`.

View file

@ -532,7 +532,7 @@ _p9k_get_icon() {
_p9k_translate_color() { _p9k_translate_color() {
if [[ $1 == <-> ]]; then # decimal color code: 255 if [[ $1 == <-> ]]; then # decimal color code: 255
_p9k__ret=${(l.3..0.)1} _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} _p9k__ret=${${(L)1}//ı/i}
else # named color: red else # named color: red
# Strip prifixes if there are any. # 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() { prompt_node_version() {
_p9k_upglob package.json -. _p9k_upglob package.json -.
local -i idx=$? local -i idx=$?
@ -3718,7 +3718,7 @@ function +vi-hg-bookmarks() {
if [[ -n "${hgbmarks[@]}" ]]; then if [[ -n "${hgbmarks[@]}" ]]; then
hook_com[hg-bookmark-string]=" $(print_icon 'VCS_BOOKMARK_ICON')${hgbmarks[@]}" 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: # variable `ret' to something other than the default zero:
ret=1 ret=1
return 0 return 0
@ -3962,7 +3962,7 @@ function _p9k_vcs_render() {
fi fi
# It's weird that removing vcs-detect-changes from POWERLEVEL9K_VCS_GIT_HOOKS gets rid # 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 _p9k_vcs_icon
icon=$_p9k__ret icon=$_p9k__ret
fi fi