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:
parent
81a939e897
commit
559d5239c5
4 changed files with 13 additions and 0 deletions
|
@ -42,6 +42,7 @@
|
|||
tag-release
|
||||
time-until
|
||||
update-all-git-repos
|
||||
vix
|
||||
];
|
||||
|
||||
xdg.configFile."pam-gnupg".text = ''
|
||||
|
|
|
@ -112,6 +112,7 @@
|
|||
todos-edit
|
||||
unmounter
|
||||
update-all-git-repos
|
||||
vix
|
||||
];
|
||||
|
||||
xdg.configFile."pam-gnupg".text = ''
|
||||
|
|
|
@ -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
10
packages/vix.nix
Executable file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.writeShellApplication {
|
||||
name = "vix";
|
||||
|
||||
text = ''
|
||||
cmd=$(command -v "$1")
|
||||
test -n "$cmd" && exec "$EDITOR" "$cmd"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue