mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
speed up
This commit is contained in:
+5
-3
@@ -5537,9 +5537,11 @@ function _p9k_parse_buffer() {
|
|||||||
state=h
|
state=h
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
'`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')')
|
*('`'|['<>=$']'(')*)
|
||||||
s=${${token##('"'|)(['$<>']|)?}%%?('"'|)}
|
if [[ $token == ('`'[^'`']##'`'|'"`'[^'`']##'`"'|'$('[^')']##')'|'"$('[^')']##')"'|['<>=']'('[^')']##')') ]]; then
|
||||||
(( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s})
|
s=${${token##('"'|)(['$<>']|)?}%%?('"'|)}
|
||||||
|
(( ic )) && tokens+=(';' ${(Z+C+)s}) || tokens+=(';' ${(z)s})
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user