I was now able to associate the busybox ash to the mime so that it looks good 
on PCManFM.

__/usr/share/mime/packages/freedesktop.org.xml__
```sh
  <mime-type type="application/x-shellscript">
    <comment>Shell script</comment>
    <comment xml:lang="uk">скрипт оболонки</comment>
    <comment xml:lang="sv">Skalskript</comment>
    <comment xml:lang="ru">Сценарий shell</comment>
    <comment xml:lang="pl">Skrypt powłoki</comment>
    <comment xml:lang="it">Script shell</comment>
    <comment xml:lang="eu">Shell scripta</comment>
    <comment xml:lang="es">secuencia de órdenes de consola</comment>
    <comment xml:lang="de">Shell-Skript</comment>
    <comment xml:lang="be">скрыпт абалонкі</comment>
    <sub-class-of type="application/x-executable"/>
    <sub-class-of type="text/plain"/>
    <alias type="text/x-sh"/>
    <generic-icon name="text-x-script"/>
    <magic>
      <match type="string" value="# This is a shell archive" offset="10"/>
      <match type="string" value="/bin/bash" offset="2:16"/>
      <match type="string" value="/bin/nawk" offset="2:16"/>
      <match type="string" value="/bin/zsh" offset="2:16"/>
      <match type="string" value="/bin/sh" offset="2:16"/>
      <match type="string" value="/bin/ksh" offset="2:16"/>
      <match type="string" value="/bin/dash" offset="2:16"/>
      <match type="string" value="/bin/env sh" offset="2:16"/>
      <match type="string" value="/bin/env bash" offset="2:16"/>
      <match type="string" value="/bin/env zsh" offset="2:16"/>
      <match type="string" value="/bin/env ksh" offset="2:16"/>
      <match type="string" value="/bin/busybox sh" offset="2:16"/>
      <match type="string" value="/bin/busybox ash" offset="2:16"/>
    </magic>
    <glob pattern="*.sh"/>
  </mime-type>
```

Mime update:
```sh
update-mime-database /usr/share/mime
```

Another thing I would like is that when I enter `# -*- Sh -*-` and save the 
file, it automatically changes the colors.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3884#issuecomment-2132038684
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3884/[email protected]>

Reply via email to