All checks were successful
/ check (push) Successful in 1m37s
Based on https://github.com/rwxrob/dot/blob/main/scripts/vic and https://github.com/etomtomm/dot/blob/main/bin/vix.
10 lines
148 B
Nix
Executable file
10 lines
148 B
Nix
Executable file
{ pkgs }:
|
|
|
|
pkgs.writeShellApplication {
|
|
name = "vix";
|
|
|
|
text = ''
|
|
cmd=$(command -v "$1")
|
|
test -n "$cmd" && exec "$EDITOR" "$cmd"
|
|
'';
|
|
}
|