mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-11 02:59:40 +02:00
More work on porting diff kitten
This commit is contained in:
@@ -47,3 +47,15 @@ func Which(cmd string, paths ...string) string {
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func FindExe(name string) string {
|
||||
ans := Which(name)
|
||||
if ans != "" {
|
||||
return ans
|
||||
}
|
||||
ans = Which(name, DefaultExeSearchPaths()...)
|
||||
if ans == "" {
|
||||
ans = name
|
||||
}
|
||||
return ans
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user