Skip to content

Commit

Permalink
Added a simplified bash completion script for fontbakery, a small qua…
Browse files Browse the repository at this point in the history
…lity-of-life feature
  • Loading branch information
n7s committed Aug 19, 2024
1 parent 93da57f commit 6b17b45
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ COPY --link docker/profile-extra-utilities-smith.sh /etc/profile.d/profile-extra
COPY --link docker/fix-git-execute-bits-scripts /usr/local/bin/fix-git-execute-bits-scripts
COPY --link docker/dot.bashrc /etc/skel/.bashrc
COPY --link docker/dot.gitconfig /etc/skel/.gitconfig
COPY --link docker/fontbakery /etc/bash_completion.d/fontbakery
RUN touch /etc/skel/.sudo_as_admin_successful
RUN touch /etc/skel/.hushlogin
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
Expand Down
12 changes: 12 additions & 0 deletions docker/fontbakery
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# bash completion for fontbakery
_fontbakery()
{
local cur prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}

COMPREPLY=($( compgen -W 'check-profile check-adobefonts check-fontbureau check-fontval check-fontwerk check-googlefonts check-iso15008 check-notofonts check-opentype check-shaping check-typenetwork check-universal' -- $cur ) )
}
complete -F _fontbakery $default fontbakery

0 comments on commit 6b17b45

Please sign in to comment.