Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vcsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kevin Lyda
vcsh
Commits
ff2d978a
Commit
ff2d978a
authored
May 6, 2013
by
Frank Terbeck
Committed by
Richard Hartmann
May 6, 2013
Browse files
Options
Downloads
Patches
Plain Diff
Implement zsh completion for "run" and "rename" subcommands
Signed-off-by:
Frank Terbeck
<
ft@bewatermyfriend.org
>
parent
84247591
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
_vcsh
+7
-2
7 additions, 2 deletions
_vcsh
with
7 additions
and
2 deletions
_vcsh
+
7
−
2
View file @
ff2d978a
...
@@ -45,12 +45,17 @@ function _vcsh-list-tracked-by () {
...
@@ -45,12 +45,17 @@ function _vcsh-list-tracked-by () {
function
_vcsh-rename
()
{
function
_vcsh-rename
()
{
((
CURRENT
==
2
))
&&
__vcsh_repositories
((
CURRENT
==
2
))
&&
__vcsh_repositories
#TODO tell the user to add a new name
((
CURRENT
==
3
))
&&
_message
"new repository name"
((
CURRENT
>
3
))
&&
_nothing
}
}
function
_vcsh-run
()
{
function
_vcsh-run
()
{
((
CURRENT
==
2
))
&&
__vcsh_repositories
((
CURRENT
==
2
))
&&
__vcsh_repositories
#TODO normal commands
if
((
CURRENT
>=
3
))
;
then
words
=(
"
${
(@)words[3,-1]
}
"
)
((
CURRENT -
=
2
))
_complete
fi
}
}
function
_vcsh-setup
()
{
function
_vcsh-setup
()
{
...
...
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