nixpkgs shortcut registries

This commit is contained in:
Noah Masur 2022-11-03 11:26:31 -04:00
parent 660ea997df
commit 7ae0649456
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ bind -M insert \cp projects
bind -M default \cp projects
bind -M insert \x1F accept-autosuggestion
bind -M default \x1F accept-autosuggestion
bind -M insert \cn 'commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#"'
bind -M default \cn 'commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#"'
bind -M insert \cn 'commandline -r "nix run nixpkgs#"'
bind -M default \cn 'commandline -r "nix run nixpkgs#"'
bind -M insert \x11F nix-fzf
bind -M default \x11F nix-fzf

View File

@ -19,9 +19,9 @@
body = ''
set program $argv[1]
if test (count $argv) -ge 2
commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#$program -- $argv[2..-1]"
commandline -r "nix run nixpkgs#$program -- $argv[2..-1]"
else
commandline -r "nix run github:NixOS/nixpkgs/nixpkgs-unstable#$program"
commandline -r "nix run nixpkgs#$program"
end
commandline -f execute
'';