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