nix-config/packages/vix.nix

11 lines
148 B
Nix
Raw Normal View History

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