From 7fe53364b2efa2d5fc2b9fc2e41259620f227740 Mon Sep 17 00:00:00 2001 From: Stanislav Seletskiy Date: Wed, 20 Apr 2016 18:46:39 +0600 Subject: [PATCH] add # symbol to escape characters --- zsh-autosuggestions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-autosuggestions.zsh b/zsh-autosuggestions.zsh index 17d1eaa..874b328 100644 --- a/zsh-autosuggestions.zsh +++ b/zsh-autosuggestions.zsh @@ -339,7 +339,7 @@ _zsh_autosuggest_escape_command() { setopt localoptions EXTENDED_GLOB # Escape special chars in the string (requires EXTENDED_GLOB) - echo -E "${1//(#m)[\\()\[\]|*?]/\\$MATCH}" + echo -E "${1//(#m)[\\()\[\]|*?#]/\\$MATCH}" } # Get the previously executed command