From 670436b6c4ef186963780c08cbdf42d32eeab1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 18 Jun 2021 20:55:14 +0200 Subject: ROX: Handle text/x-makefile separately from text/* --- home/john/.config/rox.sourceforge.net/MIME-types/text | 7 ++----- home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100755 home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile (limited to 'home/john') diff --git a/home/john/.config/rox.sourceforge.net/MIME-types/text b/home/john/.config/rox.sourceforge.net/MIME-types/text index 1e49770..532d70d 100755 --- a/home/john/.config/rox.sourceforge.net/MIME-types/text +++ b/home/john/.config/rox.sourceforge.net/MIME-types/text @@ -1,6 +1,3 @@ -#! /bin/sh +#!/bin/sh cd "$(dirname "$1")" -case "$1" in -*/Makefile) exec xtopen -K make ;; -*) exec xtopen vi "$1" ;; -esac +exec xtopen vi "$1" diff --git a/home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile b/home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile new file mode 100755 index 0000000..eae4c0f --- /dev/null +++ b/home/john/.config/rox.sourceforge.net/MIME-types/text_x-makefile @@ -0,0 +1,3 @@ +#!/bin/sh +cd "$(dirname "$1")" +exec xtopen -K make -- cgit v1.2.3