new: added /usr/share/bettercap/caplets/ as one of the default search paths for .cap files

This commit is contained in:
evilsocket 2018-07-31 16:23:42 +02:00
commit e8cc664558
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -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, ":")...)