view .zfun/zsh-autosuggestions/src/util.zsh @ 529:245dd5f29592

prompt: disable some fancy bits in vscode et al This was breaking Antigravity and other similar tools.
author Augie Fackler <raf@durin42.com>
date Mon, 09 Feb 2026 13:32:40 -0500
parents e1ce8897030d
children
line wrap: on
line source


#--------------------------------------------------------------------#
# Utility Functions                                                  #
#--------------------------------------------------------------------#

_zsh_autosuggest_escape_command() {
	setopt localoptions EXTENDED_GLOB

	# Escape special chars in the string (requires EXTENDED_GLOB)
	echo -E "${1//(#m)[\"\'\\()\[\]|*?~]/\\$MATCH}"
}