From a71d80b54dd4e79c16a26f365965c083a6354194 Mon Sep 17 00:00:00 2001 From: anki-code Date: Sun, 16 Feb 2020 23:53:37 +0300 Subject: [PATCH] wip --- xonssh_xxh/host_info.sh | 1 - xonssh_xxh/xxh_plugins_rc.xsh | 9 --------- 2 files changed, 10 deletions(-) delete mode 100644 xonssh_xxh/xxh_plugins_rc.xsh diff --git a/xonssh_xxh/host_info.sh b/xonssh_xxh/host_info.sh index 294e91c..9b38e41 100644 --- a/xonssh_xxh/host_info.sh +++ b/xonssh_xxh/host_info.sh @@ -17,7 +17,6 @@ echo xxh_version=$xxh_version echo xxh_home_writable=`[ -w $xxh_home_realpath ] && echo "1" ||echo "0"` echo xxh_parent_home_writable=`[ -w $(dirname $xxh_home_realpath) ] && echo "1" ||echo "0"` echo xxh_home_freespace=`[ -d $xxh_home_realpath ] && df -k --output=avail $xxh_home_realpath | tail -n1` -echo xxh_plugins_rc=`[ -d $xxh_plugins_path ] && find $xxh_plugins_path | grep xonshrc.xsh` echo bash=`command -v bash` echo rsync=`command -v rsync` diff --git a/xonssh_xxh/xxh_plugins_rc.xsh b/xonssh_xxh/xxh_plugins_rc.xsh deleted file mode 100644 index 542cd77..0000000 --- a/xonssh_xxh/xxh_plugins_rc.xsh +++ /dev/null @@ -1,9 +0,0 @@ -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) - -# 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)}")