summaryrefslogtreecommitdiff
path: root/etc/completions/_fbi
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-23 22:11:35 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-23 22:11:35 +0200
commit96a879fd48f32b44ea20cfaa6176841a613f1ae2 (patch)
treee36e5abd5f27c1516fb48a22aa1da6aa2c9cf390 /etc/completions/_fbi
parentae475bb4b7fa008eaf509a5ae7001b7ff05fdcd7 (diff)
fbi completion: Added font completion
Diffstat (limited to 'etc/completions/_fbi')
-rw-r--r--etc/completions/_fbi8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/completions/_fbi b/etc/completions/_fbi
index 89671a8..0751e5a 100644
--- a/etc/completions/_fbi
+++ b/etc/completions/_fbi
@@ -3,7 +3,11 @@
## Daniel Friesel <derf@derf.homelinux.org>
## https://derf.homelinux.org/~derf/dotfiles/completion/_fbi
-local arguments
+typeset arguments
+typeset IFS=$'\n'
+typeset fonts
+
+fonts='fc-list | cut -d ":" -f 1'
arguments=(
-{1,once}"[don't loop]"
@@ -16,7 +20,7 @@ arguments=(
'-comments[display image comments]'
-{d,device}'[set framebuffer device]:framebuffer device:_path_files -W /dev -g "fb*"'
-{e,edit}'[enable editing]'
- -{f,font}'[set font]:font: '
+ -{f,font}'[set font]:font:($(eval $fonts))'
'-fitwidth[zoom to width only]'
-{g,gamma}'[gamma correction]:gamma: '
-{h,help}'[show help]'