mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 05:12:56 +00:00
bind ctrl-n to nix run
This commit is contained in:
parent
758321adc3
commit
682acdc8ae
@ -45,7 +45,11 @@
|
|||||||
nix-shell-run = {
|
nix-shell-run = {
|
||||||
body = ''
|
body = ''
|
||||||
set program $argv[1]
|
set program $argv[1]
|
||||||
commandline -r "nix-shell -p $program --run \"$program $argv[2..-1]\""
|
if test (count $argv) -ge 1
|
||||||
|
commandline -r "nix run nixpkgs#$program -- $argv[2..-1]"
|
||||||
|
else
|
||||||
|
commandline -r "nix run nixpkgs#$program"
|
||||||
|
end
|
||||||
commandline -f execute
|
commandline -f execute
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -14,3 +14,5 @@ bind -M insert \cp projects
|
|||||||
bind -M default \cp projects
|
bind -M default \cp projects
|
||||||
bind -M insert \x1F accept-autosuggestion
|
bind -M insert \x1F accept-autosuggestion
|
||||||
bind -M default \x1F accept-autosuggestion
|
bind -M default \x1F accept-autosuggestion
|
||||||
|
bind -M insert \cn 'commandline -r "nix run nixpkgs#"'
|
||||||
|
bind -M default \cn 'commandline -r "nix run nixpkgs#"'
|
||||||
|
Loading…
Reference in New Issue
Block a user