From 5c2deec279465ab066e025426fc5738a94f0f4d8 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Tue, 16 Apr 2024 21:36:43 +0200 Subject: [PATCH] add nr alias and prevent bash usage on basic level --- other/config.nu | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/other/config.nu b/other/config.nu index 4d36d1d..f6fe0c7 100644 --- a/other/config.nu +++ b/other/config.nu @@ -787,6 +787,12 @@ def nsp [ nix shell ...($programs | each {|it| $"nixpkgs#($it)" }) } +def nr [ + program: string +] { + nix run $"nixpkgs#($program)" +} + def lcr [ file_extension: string ] { @@ -835,3 +841,5 @@ alias cch = cargo check; alias togglecaps = xdotool key Caps_Lock; alias TOGGLECAPS = togglecaps; + +alias bash = echo $"(ansi red)no, fuck that shit!";