Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
F
FreeBSD ports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
FreeBSD
FreeBSD ports
Commits
ef647750
Commit
ef647750
authored
2 months ago
by
baptiste daroussin
Browse files
Options
Downloads
Patches
Plain Diff
shells/zsh: add completion for mdo(1)
parent
357a3a9d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
shells/zsh/Makefile
+3
-1
3 additions, 1 deletion
shells/zsh/Makefile
shells/zsh/files/_mdo
+18
-0
18 additions, 0 deletions
shells/zsh/files/_mdo
shells/zsh/pkg-plist
+1
-0
1 addition, 0 deletions
shells/zsh/pkg-plist
with
22 additions
and
1 deletion
shells/zsh/Makefile
+
3
−
1
View file @
ef647750
PORTNAME
=
zsh
DISTVERSION
=
5.9
PORTREVISION
=
4
PORTREVISION
=
5
CATEGORIES
=
shells
MASTER_SITES
=
https://www.zsh.org/pub/
\
SF
\
...
...
@@ -107,6 +107,8 @@ post-build:
${WRKSRC}/Doc/zshall.1)
post-install
:
${
INSTALL_DATA
}
${
FILESDIR
}
/_mdo
\
${
STAGEDIR
}
/
${
DATADIR
}
/
${
ZSH_VER
}
/functions/Completion/Unix/
${
MKDIR
}
${
STAGEDIR
}${
DATADIR
}
/site-functions
${
LN
}
-f
${
STAGEDIR
}${
PREFIX
}
/bin/zsh
${
STAGEDIR
}${
PREFIX
}
/bin/rzsh
# Precompile completions and functions
...
...
This diff is collapsed.
Click to expand it.
shells/zsh/files/_mdo
0 → 100644
+
18
−
0
View file @
ef647750
#compdef mdo
local
environ e cmd cpp
local
-a
_comp_priv_prefix
local
-A
opt_args
zstyle
-a
":completion:
${
curcontext
}
:"
environ environ
for
e
in
"
${
environ
[@]
}
"
do
local
-x
"
$e
"
done
cmd
=
"
$words
[1]"
cpp
=
'_comp_priv_prefix=( $cmd -n ${(kv)opt_args[(I)-u]} )'
_arguments
-s
-S
-A
'-*'
:
\
'-u+[run command as specified user]: :_users'
\
'-i[keep the calling user]'
\
"*:: :{
$cpp
; _normal }"
This diff is collapsed.
Click to expand it.
shells/zsh/pkg-plist
+
1
−
0
View file @
ef647750
...
...
@@ -627,6 +627,7 @@ bin/zsh-%%ZSH_VER%%
%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix/_make
%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix/_man
%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix/_md5sum
%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix/_mdo
%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix/_mencal
%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix/_mh
%%DATADIR%%/%%ZSH_VER%%/functions/Completion/Unix/_mime_types
...
...
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