Add vix command
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.
This commit is contained in:
Oliver Davies 2025-07-11 11:46:01 +01:00
parent 81a939e897
commit 559d5239c5
4 changed files with 13 additions and 0 deletions

View file

@ -42,6 +42,7 @@
tag-release
time-until
update-all-git-repos
vix
];
xdg.configFile."pam-gnupg".text = ''

View file

@ -112,6 +112,7 @@
todos-edit
unmounter
update-all-git-repos
vix
];
xdg.configFile."pam-gnupg".text = ''

View file

@ -26,6 +26,7 @@ in
todos-edit = callPackage ./todos-edit.nix { };
unmounter = callPackage ./unmounter.nix { };
update-all-git-repos = callPackage ./update-all-git-repos.nix { };
vix = callPackage ./vix.nix { };
vimPlugins = prev.vimPlugins // vimPlugins;
}

10
packages/vix.nix Executable file
View file

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