[File] [PATCH] add magic for fish shell shebangs

Benjamin Lowry ben at ben.gmbh
Thu Jan 30 15:16:03 UTC 2020


---
 magic/Magdir/commands | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/magic/Magdir/commands b/magic/Magdir/commands
index faa94ae9..cbb3669d 100644
--- a/magic/Magdir/commands
+++ b/magic/Magdir/commands
@@ -84,6 +84,15 @@
 0	string/wt	#!\ /usr/bin/env\ bash	Bourne-Again shell script text executable
 !:mime	text/x-shellscript
 
+# Fish shell magic
+# From: Benjamin Lowry <ben at ben.gmbh>
+0	string/wt	#!\ /usr/local/bin/fish		fish shell script text executable
+!:mime	text/x-shellscript
+0	string/wt	#!\ /usr/bin/fish			fish shell script text executable
+!:mime	text/x-shellscript
+0	string/wt	#!\ /usr/bin/env\ fish		fish shell script text executable
+!:mime	text/x-shellscript
+
 # PHP scripts
 # Ulf Harnhammar <ulfh at update.uu.se>
 0	search/1/c	=<?php			PHP script text
-- 
2.20.1



More information about the File mailing list