comparison .zfun/zsh-autosuggestions/src/util.zsh @ 467:e1ce8897030d

zsh: import df6f6f9ff41 of zsh-autosuggestions
author Augie Fackler <raf@durin42.com>
date Mon, 03 Dec 2018 22:37:29 -0500
parents
children
comparison
equal deleted inserted replaced
466:f248cf012d9a 467:e1ce8897030d
1
2 #--------------------------------------------------------------------#
3 # Utility Functions #
4 #--------------------------------------------------------------------#
5
6 _zsh_autosuggest_escape_command() {
7 setopt localoptions EXTENDED_GLOB
8
9 # Escape special chars in the string (requires EXTENDED_GLOB)
10 echo -E "${1//(#m)[\"\'\\()\[\]|*?~]/\\$MATCH}"
11 }