Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmbootstrap
Commits
7c1da359
Commit
7c1da359
authored
6 years ago
by
Grant Miller
Browse files
Options
Downloads
Patches
Plain Diff
Remove old Zsh completion script
parent
9b5eebfb
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
helpers/pmbootstrap-autocompletion.zsh
+0
-65
0 additions, 65 deletions
helpers/pmbootstrap-autocompletion.zsh
with
0 additions
and
65 deletions
helpers/pmbootstrap-autocompletion.zsh
deleted
100644 → 0
+
0
−
65
View file @
9b5eebfb
#!zsh
# Installation:
#
# Copy this file to ~/.zsh/ (create it, if it doesn't exist, or put it
# somewhere that makes sense to you). Then, insert the following line
# in your ~/.zshrc (making sure to use the right folder name, if changed):
#
# source ~/.zsh/pmbootstrap-autocompletion.zsh
#
# Then, set the variable PMBOOTSTRAP_DIR to your `pmbootstrap` root.
# Example:
#
# PMBOOTSTRAP_DIR=/home/axel/Git/pmbootstrap
#
# This file is rudimentary, pmbootstrap actions and packages are autocompleted
# so far. Further ideas for improvements are here:
# <https://github.com/postmarketOS/pmbootstrap/pull/1232>
PMBOOTSTRAP_DIR
=
_pmbootstrap_commands
()
{
grep
'^def '
$PMBOOTSTRAP_DIR
/pmb/helpers/frontend.py |
cut
-d
' '
-f
2
\
|
cut
-d
'('
-f
1 |
grep
-v
'^_'
}
_pmbootstrap_targets
()
{
case
$1
in
build|checksum|pkgrel_bump
)
find
$PMBOOTSTRAP_DIR
/aports/
-mindepth
2
-maxdepth
2
-type
d
\
-printf
'%f\n'
|
sed
"s|
$PMBOOTSTRAP_DIR
/aports/||g"
;;
kconfig
)
echo
edit check
;;
flasher
)
echo
boot flash_kernel flash_rootfs sideload list_flavors
\
list_devices
;;
esac
}
_pmbootstrap
()
{
local
curcontext
=
"
$curcontext
"
state line
typeset
-A
opt_args
_arguments
-C
\
'1: :->command'
\
'2: :->target'
case
$state
in
command
)
compadd
`
_pmbootstrap_commands
`
;;
target
)
compadd
`
_pmbootstrap_targets
$line
[
1]
`
;;
esac
}
if
[
-f
$PMBOOTSTRAP_DIR
/pmbootstrap.py
]
;
then
compdef _pmbootstrap pmbootstrap
fi
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