Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Routing-DE-EFA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
Travel-Routing-DE-EFA
Commits
c8a7e878
Commit
c8a7e878
authored
14 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Update zsh completion
parent
c1f858f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
provides/zsh/completions/_efa
+38
-10
38 additions, 10 deletions
provides/zsh/completions/_efa
with
38 additions
and
10 deletions
provides/zsh/completions/_efa
+
38
−
10
View file @
c8a7e878
#compdef efa
typeset
-a
arguments
typeset
-A
argument_pairs argument_postfix
typeset
arg
argument_pairs
=(
time
t+
arrive a+
date
d+
bike b
exclude e+
max-change m+
prefer P+
proximity p
include i+
walk-speed w+
ignore-info I+
version v
)
argument_postfix
=(
time
'[Journey start time]:timestamp'
arrive
'[Journey end time]:timestamp'
date
'[Journey date]:date'
bike
'[Prefer connections where you can take a bike with you]'
exclude
'[Exclude transport types]:transport type:_efa_transports'
max-change
'[Maximum interchanges]:maximum interchange number'
prefer
'[Prefer connections]:connection type:(speed nowait nowalk)'
proximity
'[Take close stops into account]'
include
'[Include extra connection types]:connection type:(local ic ice)'
walk-speed
'[Walk speed]:walk speed:(normal fast slow)'
ignore-info
'[Ignore additional information]:regex'
verison
'[Print version information]'
)
arguments
=(
'--'
{
from,to,via
}
':city: :stop: '
'--'
{
from,to,via
}
'-type:type:(stop address poi)'
'--bike'
'--debug'
'(--depart --arrive)--time:time'
'(--depart --time)--arrive:time'
'(--arrive --time)--depart:time'
'--date:date'
'*--exclude:transports:_efa_transports'
'--max-change:number'
'--prefer:type:(speed nowait nowalk)'
'--proximity'
'--include:type:(local ic ice)'
'--walk-speed:speed:(normal fast slow)'
'--ignore-info:regex'
'*--post:POST key=value'
)
for
arg
in
${
(k)argument_pairs
}
;
{
arguments+
=
'(--'
${
arg
}
')-'
${
argument_pairs
[
$arg
]
}${
argument_postfix
[
$arg
]
}
arguments+
=
'(-'
${${
argument_pairs
[
$arg
]
}
[1]
}
')--'
${
arg
}${
argument_postfix
[
$arg
]
}
}
function
_efa_transports
{
typeset
-a
keys used_prefixes
typeset
prefix
=
''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment