nix-config/packages/vix.nix
2025-07-13 23:15:31 +01:00

12 lines
190 B
Nix
Executable file

{ pkgs }:
pkgs.writeShellApplication {
name = "vix";
runtimeInputs = with pkgs; [ neovim ];
text = ''
cmd=$(command -v "$1")
test -n "$cmd" && exec "$EDITOR" "$cmd"
'';
}