Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
fcf1fe72
Commit
fcf1fe72
authored
Jan 22, 2019
by
Z.Shang
Browse files
init ros plugin
parent
586ca169
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/ros/README.mkd
0 → 100644
View file @
fcf1fe72
# Roswell Plugin
This plugin adds completions and aliases for
[
Roswell
](
https://github.com/roswell/roswell/
)
.
To use it, add
`ros`
to the plugins array in your zshrc file:
```
zsh
plugins
=(
... ros
)
```
plugins/ros/_ros
0 → 100644
View file @
fcf1fe72
#compdef ros
#autoload
# roswell zsh completion, based on gem completion
local -a _1st_arguments
_1st_arguments=(
'run: Run repl'
'install:Install a given implementation or a system for roswell environment'
'update:Update installed systems.'
'build:Make executable from script.'
'use:Change default implementation.'
'init:a new ros script, optionally based on a template.'
'fmt:Indent lisp source.'
'list:Information'
'template:[WIP] Manage templates'
'delete:Delete installed implementations'
'config:Get and set options'
'version:Show the roswell version information'
"help:Use \"ros help [command]\" for more information about a command."$'\n\t\t'"Use \"ros help [topic]\" for more information about the topic."
)
#local expl
_arguments \
'(--version)'--version'[Print version information and quit]' \
'(-w --wrap)'{-w,--wrap}'[\[CODE\] Run roswell with a shell wrapper CODE]' \
'(-m --image)'{-m,--image}'[\[IMAGE\] continue from Lisp image IMAGE]' \
'(-M --module)'{-M,--module}'[\[NAME\] Execute ros script found in ROSWELLPATH. (pythons -m)]' \
'(-L --lisp)'{-L,--lisp}'[\[NAME\] Run roswell with a lisp impl NAME\[/VERSION\].]' \
'(-l --load)'{-l,--load}'[\[FILE\] load lisp FILE while building]' \
'(-S --source-registry)'{-S,--source-registry}'[\[X\] override source registry of asdf systems]' \
'(-s --system --load-system)'{-s,--system,--load-system}'[\[SYSTEM\] load asdf SYSTEM while building]' \
'(-p --package)'{-p,--package}'[\[PACKAGE\] change current package to \[PACKAGE\]]' \
'(-sp --system-package)'{-sp,--system-package}'[\[SP\] combination of -s \[SP\] and -p \[SP\]]' \
'(-e --eval)'{-e,--eval}'[\[FORM\] evaluate \[FORM\] while building]' \
'--require'--require'[\[MODULE\] require \[MODULE\] while building]' \
'(-q --quit)'{-q,--quit}'[quit lisp here]' \
'(-r --restart)'{-r,--restart}'[\[FUNC\] restart from build by calling (\[FUNC\])]' \
'(-E --entry)'{-E,--entry}'[\[FUNC\] restart from build by calling (\[FUNC\] argv)]' \
'(-i --init)'{-i,--init}'[\[FORM\] evaluate \[FORM\] after restart]' \
'(-ip --print)'{-ip,--print}'[\[FORM\] evaluate and princ \[FORM\] after restart]' \
'(-iw --write)'{-iw,--write}'[\[FORM\] evaluate and write \[FORM\] after restart]' \
'(-F --final)'{-F,--final}'[\[FORM\] evaluate \[FORM\] before dumping IMAGE]' \
'(\+R --no-rc)'{\+R,--no-rc}'[skip /etc/rosrc, ~/.roswell/init.lisp]' \
'(-A --asdf)'{-A,--asdf}'[use new asdf]' \
'(\+Q --no-quicklisp)'{\+Q,--no-quicklisp}'[do not use quicklisp]' \
'(-v --verbose)'{-v,--verbose}'[be quite noisy while building]' \
'--quiet'--quiet'[be quite quiet while building default]' \
'--test'--test'[for test purpose]' \
'*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "ros subcommand" _1st_arguments
return
fi
# _files
case "$words[1]" in
-l|--load)
_files
;;
esac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment