Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
purr-data
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
Container Registry
Model registry
Operate
Environments
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
nerrons
purr-data
Commits
85490589
Commit
85490589
authored
10 years ago
by
Ivica Bukvic
Browse files
Options
Downloads
Patches
Plain Diff
*added proper bash completion for pd-l2ork
parent
32e1df40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/linux_make/Makefile
+1
-1
1 addition, 1 deletion
packages/linux_make/Makefile
scripts/bash_completion/pd-l2ork
+112
-0
112 additions, 0 deletions
scripts/bash_completion/pd-l2ork
with
113 additions
and
1 deletion
packages/linux_make/Makefile
+
1
−
1
View file @
85490589
...
...
@@ -121,7 +121,7 @@ deb: $(bindir)
$(DESTDIR)/usr/share/mime/packages/
# files for /etc
install
-d
$(DESTDIR)/etc/bash_completion.d/
install
-p
-m0644
$(scripts_src)/bash_completion/pd
\
install
-p
-m0644
$(scripts_src)/bash_completion/pd
-l2ork
\
$(DESTDIR)/etc/bash_completion.d
install
-d
$(DESTDIR)/etc/default
install
-p
-m0644
$(scripts_src)/debian/default/pd-l2ork
\
...
...
This diff is collapsed.
Click to expand it.
scripts/bash_completion/pd-l2ork
0 → 100644
+
112
−
0
View file @
85490589
#
# bash_completion file for Pd-l2ork.
#
# Save as: /etc/bash_completion.d/pd-l2ork or ~/.bash_completion and enjoy never
# having to type any full command line option anymore. Instead you can press
# <TAB>.
#
# If you want to help, these are fine introductions to bash's completion
# feature:
#
# http://www.debian-administration.org/articles/316
# http://www.debian-administration.org/articles/317
#
# First version written by Frank Barknecht <fbar AT footils.org> Dec 26 2005
# Modified by Ivica Ico Bukvic <ico AT vt.edu> Aug 31 2014 to make it work for pd-l2ork
have pd-l2ork &&
_pd-l2ork()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
# Pd-l2ork's options:
opts="-help \
-r \
-audioindev \
-audiooutdev \
-audiodev \
-inchannels \
-outchannels \
-channels \
-audiobuf \
-blocksize \
-sleepgrain \
-nodac \
-noadc \
-noaudio \
-listdev \
-oss \
-32bit \
-alsa \
-alsaadd \
-jack \
-midiindev \
-midioutdev \
-mididev \
-nomidiin \
-nomidiout \
-nomidi \
-alsamidi \
-path \
-nostdpath \
-stdpath \
-helppath \
-open \
-lib \
-font-size \
-font-face \
-font-weight \
-verbose \
-version \
-d \
-noloadbang \
-stderr \
-nogui \
-guiport \
-guicmd \
-send \
-noprefs \
-rt \
-realtime \
-nrt \
-nosleep \
-schedlib \
-extraflags \
-batch \
-autopatch \
-k12 \
-unique"
# options that require an argument:
case "${prev}" in
# directory argument:
# TODO: colon-separated paths as in "/usr/lib/pd-l2ork/extra:/home/user/pd-l2ork"
-path)
COMPREPLY=( $(compgen -d ${cur}) )
return 0
;;
-helppath)
COMPREPLY=( $(compgen -d ${cur}) )
return 0
;;
# patch file argument:
-open)
_filedir '@(pd|pat)'
return 0
;;
*)
;;
esac
if [[ ${cur} == -* ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
else
_filedir '@(pd|pat)'
fi
}
[ "${have:-}" ] && complete -F _pd-l2ork $filenames pd-l2ork
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