xxh/xonssh_xxh/xxh_plugins_rc.xsh

10 lines
367 B
Text
Raw Normal View History

2019-11-03 13:06:26 +00:00
import os, glob
import_path = os.path.join($XXH_HOME, 'plugins')
xonshrc_plugins_rc=[]
for rc in sorted(glob.glob(os.path.join(import_path, '*/xonshrc.xsh'))):
xonshrc_plugins_rc.append(rc)
2020-02-08 21:57:47 +00:00
# Prefix `xxh-plugins: ` is needed to workaround some cases when ssh write warnings to stdout and return before this
print(f"xxh-plugins# {' '.join(xonshrc_plugins_rc)}")