mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: added /usr/share/bettercap/caplets/ as one of the default search paths for .cap files
This commit is contained in:
parent
3d1936ef61
commit
e8cc664558
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,8 @@ func (s *Session) setupReadline() error {
|
|||
|
||||
searchForCap("./", tree, false)
|
||||
searchForCap("./caplets/", tree, true)
|
||||
searchForCap("/usr/share/bettercap/caplets/", tree, true)
|
||||
|
||||
capspath := core.Trim(os.Getenv("CAPSPATH"))
|
||||
var paths []string
|
||||
paths = append(paths, core.SepSplit(capspath, ":")...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue