fix: shim should use v executable from $PATH (#4)

This commit is contained in:
Marc 2023-11-04 21:58:31 -04:00
parent def2dd8752
commit aa365131d1
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 4 additions and 3 deletions

View file

@ -22,7 +22,7 @@ var SHIMS = []string{
const DEFAULT_PERMISSION = 0775
func writeShim(shimPath string) error {
shimContent := []byte("#!/bin/bash\n$(vm where) $@")
shimContent := []byte("#!/bin/bash\n$(v where) $@")
if err := os.WriteFile(shimPath, shimContent, DEFAULT_PERMISSION); err != nil {
return err
}

5
v.go
View file

@ -5,8 +5,9 @@ import (
)
const (
Version = "0.0.1"
Author = "mcataford <hello@karnov.club>"
Version = "0.0.2"
Author = "Marc Cataford <hello@karnov.club>"
Homepage = "https://github.com/mcataford/v"
)
// Main entrypoint.