mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +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