From 5d01fd8493a120fc714e9adaf758367340e57526 Mon Sep 17 00:00:00 2001 From: tzlil Date: Thu, 13 Jul 2023 15:59:10 +0300 Subject: make ns function actually work --- mixins/cli.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mixins') diff --git a/mixins/cli.nix b/mixins/cli.nix index 14417b0..5ef2cfe 100644 --- a/mixins/cli.nix +++ b/mixins/cli.nix @@ -78,7 +78,13 @@ }; functions = { fish_greeting = ""; - ns = "eval nix shell nixpkgs#\\{(string join \",\" $argv)\\}"; + ns = '' + set -l p + for a in $argv + set p $p "nixpkgs#$a" + end + nix shell $p + ''; }; }; neovim = { -- cgit 1.4.1