localhost should be only bash

This commit is contained in:
Jakobus Schürz 2020-01-14 14:32:07 +01:00
parent 5184f8dc69
commit eab99b2745

View file

@ -219,9 +219,13 @@ mkcd () {
sshmyshellconfig() {
local SSH="/usr/bin/ssh"
[ -e ${MYSHELLCONFIG_BASE}/bashrc_add ] && $SSH -T -o VisualHostKey=no $@ "cat > ~/${MYSHELLCONFIG_SUBPATH}/bashrc_add" < "${MYSHELLCONFIG_BASE}/bashrc_add"
local CMD="$SSH -T $@"
if [ $1 == "*localhost" ]; then
CMD=""
else
local SSH="/usr/bin/ssh"
[ -e ${MYSHELLCONFIG_BASE}/bashrc_add ] && $SSH -T -o VisualHostKey=no $@ "cat > ~/${MYSHELLCONFIG_SUBPATH}/bashrc_add" < "${MYSHELLCONFIG_BASE}/bashrc_add"
local CMD="$SSH -T $@"
fi
$CMD /bin/bash << EOF
[ -e /etc/bashrc ] && . /etc/bashrc
[ -e /etc/bash.bashrc ] && . /etc/bash.bashrc