mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-13 16:40:08 +00:00
Merge branch 'master' into instant-prompt
This commit is contained in:
commit
4536dc2a27
3 changed files with 5 additions and 6 deletions
Binary file not shown.
Binary file not shown.
|
@ -457,11 +457,10 @@ _p9k_background() {
|
|||
}
|
||||
|
||||
_p9k_foreground() {
|
||||
case $1 in
|
||||
'') _p9k_ret="%f";;
|
||||
'#'*) _p9k_ret="%F{$1}";;
|
||||
*) _p9k_ret="%${1}F";;
|
||||
esac
|
||||
# Note: This code used to produce `%1F` instead of `%F{1}` because it's more efficient.
|
||||
# Unfortunately, this triggers a bug in zsh. Namely, `%1F{2}` gets percent-expanded as if
|
||||
# it was `%F{2}`.
|
||||
[[ -n $1 ]] && _p9k_ret="%F{$1}" || _p9k_ret="%k"
|
||||
}
|
||||
|
||||
_p9k_escape_style() {
|
||||
|
|
Loading…
Reference in a new issue