Files
home/.oh-my-zsh/custom/plugins/zsh-autosuggestions/src/util.zsh
2025-10-08 10:35:48 +02:00

12 lines
401 B
Bash

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