improve nix-shell-run with args

This commit is contained in:
Noah Masur 2022-07-05 08:42:24 -04:00
parent 076068aa85
commit 7093ba7791
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
black # Python formatter
];
programs.fish.shellAbbrs = { py = "python"; };
programs.fish.shellAbbrs = { py = "python3"; };
};

View File

@ -45,7 +45,7 @@
nix-shell-run = {
body = ''
set program $argv[1]
commandline -r "nix-shell -p $program --run $program"
commandline -r "nix-shell -p $program --run \"$program $argv[2..-1]\""
commandline -f execute
'';
};