aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_complete_tex.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/__fish_complete_tex.fish')
-rw-r--r--share/functions/__fish_complete_tex.fish10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/functions/__fish_complete_tex.fish b/share/functions/__fish_complete_tex.fish
new file mode 100644
index 00000000..871aa41a
--- /dev/null
+++ b/share/functions/__fish_complete_tex.fish
@@ -0,0 +1,10 @@
+
+function __fish_complete_tex -d "Common completions for all tex commands"
+
+ complete -c $argv -o help -d (_ "Display help and exit")
+ complete -c $argv -o version -d (_ "Display version and exit")
+ complete -c $argv -x -a "(
+ __fish_complete_suffix (commandline -ct) .tex '(La)TeX file'
+ )"
+
+end