diff --git a/home/scripts/default.nix b/home/scripts/default.nix index 9926cfa..a7ddf60 100644 --- a/home/scripts/default.nix +++ b/home/scripts/default.nix @@ -70,7 +70,7 @@ in fishl = writeFishBin "fishl" ./logo.fish; nrun = writeFishBin "nrun" '' - if echo $argv[1] | grep -Eq '^(github):.+/.+$' + if echo "$argv[1]" | grep -Eq '^[a-z]+:.+/.+$' nix run $argv[1] -- $argv[2..] else nix run nixpkgs#$argv[1] -- $argv[2..]