mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 13:41:56 +00:00
helping with some spelling corrections in powerlevel9k.zsh-theme instructional sections
This commit is contained in:
parent
fd9c998f02
commit
72cfc35d3e
1 changed files with 7 additions and 7 deletions
|
@ -41,7 +41,7 @@ else
|
||||||
POWERLEVEL9K_INSTALLATION_PATH="$0"
|
POWERLEVEL9K_INSTALLATION_PATH="$0"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Resolve the instllation path
|
# Resolve the installation path
|
||||||
if [[ -L "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then
|
if [[ -L "$POWERLEVEL9K_INSTALLATION_PATH" ]]; then
|
||||||
# If this theme is sourced as a symlink, we need to locate the real URL
|
# If this theme is sourced as a symlink, we need to locate the real URL
|
||||||
filename="$(realpath -P $POWERLEVEL9K_INSTALLATION_PATH 2>/dev/null || readlink -f $POWERLEVEL9K_INSTALLATION_PATH 2>/dev/null || perl -MCwd=abs_path -le 'print abs_path readlink(shift);' $POWERLEVEL9K_INSTALLATION_PATH 2>/dev/null)"
|
filename="$(realpath -P $POWERLEVEL9K_INSTALLATION_PATH 2>/dev/null || readlink -f $POWERLEVEL9K_INSTALLATION_PATH 2>/dev/null || perl -MCwd=abs_path -le 'print abs_path readlink(shift);' $POWERLEVEL9K_INSTALLATION_PATH 2>/dev/null)"
|
||||||
|
@ -103,10 +103,10 @@ fi
|
||||||
#
|
#
|
||||||
# Methodology behind user-defined variables overwriting colors:
|
# Methodology behind user-defined variables overwriting colors:
|
||||||
# The first parameter to the segment constructors is the calling function's
|
# The first parameter to the segment constructors is the calling function's
|
||||||
# name. From this function name, we strip the "prompt_"-prefix and
|
# name. From this function name, we strip the "prompt_"-prefix and
|
||||||
# uppercase it. This is then prefixed with "POWERLEVEL9K_" and suffixed
|
# uppercase it. This is then prefixed with "POWERLEVEL9K_" and suffixed
|
||||||
# with either "_BACKGROUND" or "_FOREGROUND", thus giving us the variable
|
# with either "_BACKGROUND" or "_FOREGROUND", thus giving us the variable
|
||||||
# name. So each new segment is user-overwritable by a variable following
|
# name. So each new segment is user-overwritten by a variable following
|
||||||
# this naming convention.
|
# this naming convention.
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ CURRENT_BG='NONE'
|
||||||
|
|
||||||
# Begin a left prompt segment
|
# Begin a left prompt segment
|
||||||
# Takes four arguments:
|
# Takes four arguments:
|
||||||
# * $1: Name of the function that was orginally invoked (mandatory).
|
# * $1: Name of the function that was originally invoked (mandatory).
|
||||||
# Necessary, to make the dynamic color-overwrite mechanism work.
|
# Necessary, to make the dynamic color-overwrite mechanism work.
|
||||||
# * $2: The array index of the current segment
|
# * $2: The array index of the current segment
|
||||||
# * $3: Background color
|
# * $3: Background color
|
||||||
|
@ -207,7 +207,7 @@ CURRENT_RIGHT_BG='NONE'
|
||||||
|
|
||||||
# Begin a right prompt segment
|
# Begin a right prompt segment
|
||||||
# Takes four arguments:
|
# Takes four arguments:
|
||||||
# * $1: Name of the function that was orginally invoked (mandatory).
|
# * $1: Name of the function that was originally invoked (mandatory).
|
||||||
# Necessary, to make the dynamic color-overwrite mechanism work.
|
# Necessary, to make the dynamic color-overwrite mechanism work.
|
||||||
# * $2: The array index of the current segment
|
# * $2: The array index of the current segment
|
||||||
# * $3: Background color
|
# * $3: Background color
|
||||||
|
@ -1016,7 +1016,7 @@ powerlevel9k_prepare_prompts() {
|
||||||
$(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
|
$(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
|
||||||
if [[ "$POWERLEVEL9K_RPROMPT_ON_NEWLINE" != true ]]; then
|
if [[ "$POWERLEVEL9K_RPROMPT_ON_NEWLINE" != true ]]; then
|
||||||
# The right prompt should be on the same line as the first line of the left
|
# The right prompt should be on the same line as the first line of the left
|
||||||
# prompt. To do so, there is just a quite ugly workaround: Before zsh draws
|
# prompt. To do so, there is just a quite ugly workaround: Before zsh draws
|
||||||
# the RPROMPT, we advise it, to go one line up. At the end of RPROMPT, we
|
# the RPROMPT, we advise it, to go one line up. At the end of RPROMPT, we
|
||||||
# advise it to go one line down. See:
|
# advise it to go one line down. See:
|
||||||
# http://superuser.com/questions/357107/zsh-right-justify-in-ps1
|
# http://superuser.com/questions/357107/zsh-right-justify-in-ps1
|
||||||
|
|
Loading…
Reference in a new issue