First pass at async functionality

This commit is contained in:
Eric Freese
2016-07-19 21:04:18 -06:00
parent debbffc79a
commit ab8f295225
9 changed files with 191 additions and 55 deletions

11
src/util.zsh Normal file
View File

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