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
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