From 02e849d83b6b5ca1dd080b427f125e66d4c319e9 Mon Sep 17 00:00:00 2001 From: Minura Molligoda Date: Mon, 21 Aug 2023 18:13:56 -0400 Subject: [PATCH] Fix broken tree-sitter parsing of p10k-instant-prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Wrong parsing for `${!#}` · Issue #160 · tree-sitter/tree-sitter-bash](https://github.com/tree-sitter/tree-sitter-bash/issues/160) > Same problem here, with a similar variable replacement: > `display="${display%|*}"` > It makes the syntax broken for the rest of the file [Fixes by amaanq · Pull Request #186 · tree-sitter/tree-sitter-bash](https://github.com/tree-sitter/tree-sitter-bash/pull/186) [Drop dependency on `bash-parser` · Issue #72 · webpro/knip](https://github.com/webpro/knip/issues/72) > Since tree-sitter-bash@0.20.0 was released the other day I've pulled the > trigger here as well. Would deserve either a major bump or just a patch > release. As I think it shouldn't cause friction anywhere I opted for the > latter (I do expect an occasional issue around arguments w/ quotes here > and there, let's see). > > 🚀 This issue has been resolved in v2.19.6. See Release 2.19.6 for > release notes. --- private_dot_config/zsh/dot_zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/private_dot_config/zsh/dot_zshrc b/private_dot_config/zsh/dot_zshrc index 0bccbf6..d5ec1a8 100644 --- a/private_dot_config/zsh/dot_zshrc +++ b/private_dot_config/zsh/dot_zshrc @@ -1,5 +1,5 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then - source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" to mournfully + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi source "${XDG_CONFIG_HOME}/zsh/alias"