From da45cb15e5c40e03253066cbfc6259cc2ef17520 Mon Sep 17 00:00:00 2001 From: Malix - Alix Brunet Date: Sun, 6 Sep 2026 21:10:02 +0200 Subject: [PATCH] Add support for 'nu' extension and Nushell interpreters --- identify/extensions.py | 1 + identify/interpreters.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/identify/extensions.py b/identify/extensions.py index e31a6be..c887aff 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -192,6 +192,7 @@ 'nimble': {'text', 'nimble'}, 'nix': {'text', 'nix'}, 'njk': {'text', 'nunjucks'}, + 'nu': {'text', 'nushell'}, 'otf': {'binary', 'otf'}, 'p12': {'binary', 'p12'}, 'pas': {'text', 'pascal'}, diff --git a/identify/interpreters.py b/identify/interpreters.py index e4d3d6e..4a13a7e 100644 --- a/identify/interpreters.py +++ b/identify/interpreters.py @@ -12,6 +12,8 @@ 'ksh': {'shell', 'ksh'}, 'node': {'javascript'}, 'nodejs': {'javascript'}, + 'nu': {'nushell'}, + 'nushell': {'nushell'}, 'perl': {'perl'}, 'php': {'php'}, 'php7': {'php', 'php7'},