|
|
@ -91,7 +91,7 @@ function getColorCode() {
|
|
|
|
emulate -L zsh
|
|
|
|
emulate -L zsh
|
|
|
|
setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst}
|
|
|
|
setopt no_hist_expand extended_glob no_prompt_bang prompt_{percent,subst}
|
|
|
|
if (( ARGC == 1 )); then
|
|
|
|
if (( ARGC == 1 )); then
|
|
|
|
case $1 in
|
|
|
|
case $1 in
|
|
|
|
foreground)
|
|
|
|
foreground)
|
|
|
|
local k
|
|
|
|
local k
|
|
|
|
for k in "${(k@)__p9k_colors}"; do
|
|
|
|
for k in "${(k@)__p9k_colors}"; do
|
|
|
@ -457,11 +457,10 @@ _p9k_background() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_p9k_foreground() {
|
|
|
|
_p9k_foreground() {
|
|
|
|
case $1 in
|
|
|
|
# Note: This code used to produce `%1F` instead of `%F{1}` because it's more efficient.
|
|
|
|
'') _p9k_ret="%f";;
|
|
|
|
# Unfortunately, this triggers a bug in zsh. Namely, `%1F{2}` gets percent-expanded as if
|
|
|
|
'#'*) _p9k_ret="%F{$1}";;
|
|
|
|
# it was `%F{2}`.
|
|
|
|
*) _p9k_ret="%${1}F";;
|
|
|
|
[[ -n $1 ]] && _p9k_ret="%F{$1}" || _p9k_ret="%k"
|
|
|
|
esac
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_p9k_escape_style() {
|
|
|
|
_p9k_escape_style() {
|
|
|
|