From 2ba80c4418bc9097b2268794527298735f4b9ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sun, 9 Jun 2024 17:58:07 +0200 Subject: [PATCH] Sun Jun 9 05:58:07 PM CEST 2024 --- home/zsh/default.nix | 1 + home/zsh/files/functions.zsh | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 home/zsh/files/functions.zsh diff --git a/home/zsh/default.nix b/home/zsh/default.nix index 3dd0430..94df5b1 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -57,6 +57,7 @@ source "$(fzf-share)/completion.zsh" fi source ${./files/keys.zsh} + source ${./files/functions.zsh} } ''; diff --git a/home/zsh/files/functions.zsh b/home/zsh/files/functions.zsh new file mode 100644 index 0000000..d39ce61 --- /dev/null +++ b/home/zsh/files/functions.zsh @@ -0,0 +1,3 @@ +function run() { + nix run "nixpkgs#$1" -- "${@:2}" +}