From f753f6cc453f355368210c37d5a85fee4ea1d7ed Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 8 Nov 2023 20:17:13 +0100 Subject: [PATCH] Adds to-md formatter --- nushell/config.nu | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nushell/config.nu b/nushell/config.nu index fe9192f..56fe97f 100644 --- a/nushell/config.nu +++ b/nushell/config.nu @@ -129,6 +129,13 @@ def df [] { | rename "Sys. de fichiers" "Taille" "Utilisé" "Dispo" "Uti%" "Monté sur" } +# easy markdown formamtter +def to-md [] { + let arg = $in + $env.config.table.mode = markdown; + echo $arg +} + # vim aliases alias v = nvim