mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 23:55:37 +00:00
improve nix-shell-run with args
This commit is contained in:
parent
076068aa85
commit
7093ba7791
@ -8,7 +8,7 @@
|
|||||||
black # Python formatter
|
black # Python formatter
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.fish.shellAbbrs = { py = "python"; };
|
programs.fish.shellAbbrs = { py = "python3"; };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
nix-shell-run = {
|
nix-shell-run = {
|
||||||
body = ''
|
body = ''
|
||||||
set program $argv[1]
|
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
|
commandline -f execute
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user