Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
fcf1fe72
Commit
fcf1fe72
authored
Jan 21, 2019
by
Z.Shang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init ros plugin
parent
586ca169
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
README.mkd
plugins/ros/README.mkd
+10
-0
_ros
plugins/ros/_ros
+64
-0
No files found.
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