fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
bacdcbc65
master
1function __fish_guile__complete_srfis 2printf '%s\n' 0 \t'cond-expand' \ 31 \t'List library' \ 42 \t'and-let*' \ 54 \t'Homogeneous numeric vector datatypes' \ 66 \t'Basic String Ports' \ 78 \t'receive' \ 89 \t'define-record-type' \ 910 \t'Hash-Comma Reader Extension' \ 1011 \t'let-values' \ 1113 \t'String Library' \ 1214 \t'Character-set Library' \ 1316 \t'case-lambda' \ 1417 \t'Generalized set!' \ 1518 \t'Multithreading support' \ 1619 \t'Time/Date Library' \ 1723 \t'Error Reporting' \ 1826 \t'specializing parameters' \ 1927 \t'Sources of Random Bits' \ 2028 \t'Basic Format Strings' \ 2130 \t'Nested Multi-line Comments' \ 2231 \t'A special form ‘rec’ for recursive evaluation' \ 2334 \t'Exception handling for programs' \ 2435 \t'Conditions' \ 2537 \t'args-fold' \ 2638 \t'External Representation for Data With Shared Structure' \ 2739 \t'Parameters' \ 2841 \t'Streams' \ 2942 \t'Eager Comprehensions' \ 3043 \t'Vector Library' \ 3145 \t'Primitives for Expressing Iterative Lazy Algorithms' \ 3246 \t'Basic syntax-rules Extensions' \ 3355 \t'Requiring Features' \ 3460 \t'Integers as Bits' \ 3561 \t'A more general cond clause' \ 3662 \t'S-expression comments' \ 3764 \t'A Scheme API for test suites' \ 3867 \t'Compare procedures' \ 3969 \t'Basic hash tables' \ 4071 \t'Extended let-syntax for multiple values' \ 4187 \t'in case clauses' \ 4288 \t'Keyword Objects' \ 4398 \t'Accessing environment variables' \ 44105 \t'Curly-infix expressions' \ 45111 \t'Boxes' \ 46119 \t'Wisp: simpler indentation-sensitive Scheme' \ 47171 \t'Transducers' \ 48197 \t'Pipeline Operators' \ 49207 \t'String-notated bytevectors' \ 50235 \t'Combinators' \ 51244 \t'Multiple-value Definitions' 52end 53 54function __fish_guile__complete_function_names 55set -l path( commandline -poc| 56string match --regex'.*\\.scm$' | 57sed -n 1p) 58 59test -e " $path " && begin 60cat $path | 61string match --all --groups-only --regex'\(\s*define\s+\(\s*(\w+)' 62end 63end 64 65set -l command guile 66 67complete -c$command -s h -l help -d'Show help' 68complete -c$command -s v -l version -d'Show version' 69complete -c$command -s s -F -r -d'Load source code from FILE and exit' 70complete -c$command -s c -x -d'Evaluate expression EXPR and exit' 71 72complete -c$command -s L -F -r\ 73 -d'Specify the directory to prepend to module load path' 74 75complete -c$command -s C -F -r\ 76 -d'Specify the directory to prepend to module load path for compiled files' 77 78complete -c$command -s x -x\ 79 -a'.scm\tdefault' \ 80 -d'Specify the extension to prepend to extension list' 81 82complete -c$command -s l -F -r -d'Load source code from FILE' 83 84complete -c$command -s e -x\ 85 -a'(__fish_guile__complete_function_names)' \ 86 -d'Specify the entry point of a script' 87 88complete -c$command -o ds\ 89 -d'Treat the last -s option as if it occurred at this point' 90 91complete -c$command -l use-srfi\ 92 -a"(__fish_stripprefix='^--use-srfi=' __fish_complete_list , __fish_guile__complete_srfis)" \ 93 -d'Specify the SRFI modules to load' 94 95for standardin 6 7 96set -l option r$standard "rs" 97 98complete -c$command -l$option \ 99 -d"Use $ ( string upper -- $option ) compatible mode" 100end 101 102complete -c$command -l debug -d'Use debug mode' 103complete -c$command -l no-debug -d"Don't use debug mode" 104complete -c$command -s q -d"Don't load .guile file" 105 106complete -c$command -l listen\ 107 -a'37146\tdefault' \ 108 -d'Specify the port to listen on' 109 110complete -c$command -l auto-compile -d'Compile scripts automatically' 111 112complete -c$command -l fresh-auto-compile\ 113 -d'Compile scripts automatically forcefully' 114 115complete -c$command -l no-auto-compile -d"Don't compile scripts automatically" 116 117complete -c$command -l statprof -d'Profile using statprof and show results in STYLE' 118 119complete -c$command -l language\ 120 -a'scheme\tdefault elisp ecmascript' \ 121 -d'Specify the language for sources'