Skip to content

Instantly share code, notes, and snippets.

@dan1994
dan1994 / makefile
Last active June 8, 2020 18:53
Make me a sandwich!
# https://xkcd.com/149/
me:
ifndef A
@echo 'Make you what?'
else
@[ $(shell id -u) -eq 0 ] && echo 'Okay.' || echo 'What? Make it yourself.'
endif
@dan1994
dan1994 / completion_invoked_directly.log
Last active May 2, 2020 14:23
Logs of autocompletion attempts when invoking directly or through python
+_complete_debug:20> : zsh 5.4.2
+_complete_debug:21> _main_complete
+_main_complete:11> local IFS=$' \t\n\C-@'
+_main_complete:25> eval $'local -A _comp_caller_options;\n _comp_caller_options=(${(kv)options[@]});\n setopt localoptions localtraps localpatterns ${_comp_options[@]};\n local IFS=$\' \\t\\r\\n\\0\';\n builtin enable -p \\| \\~ \\( \\? \\* \\[ \\< \\^ \\# 2>&-;\n exec </dev/null;\n trap - ZERR;\n local -a reply;\n local REPLY'
+(eval):1> local -A _comp_caller_options
+(eval):2> _comp_caller_options=( posixargzero off autolist on printexitvalue off kshzerosubscript off histreduceblanks off chaselinks off extendedglob on localloops off histnostore off automenu on globcomplete off unset on listpacked off promptsubst on shwordsplit off pathdirs off kshtypeset off listtypes on warncreateglobal off promptbang off dotglob off braceexpand on listbeep on correctall off privileged off numericglobsort