From 5e0ff7ffa72200a6342756368c461e710f6c7e91 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Thu, 8 Feb 2024 20:08:42 +0100 Subject: [PATCH] zsh: add function as nix run alias --- modules/home/zsh/functions.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/home/zsh/functions.zsh b/modules/home/zsh/functions.zsh index 7785a81..6e98018 100644 --- a/modules/home/zsh/functions.zsh +++ b/modules/home/zsh/functions.zsh @@ -10,3 +10,7 @@ mkcd () { mkdir -p -- "$1" && cd -P -- "$1" } + +run() { + nix run nixpkgs#"$1" -- ${@:2} +}