localhost should be only bash
This commit is contained in:
parent
5184f8dc69
commit
eab99b2745
1 changed files with 7 additions and 3 deletions
|
@ -219,9 +219,13 @@ mkcd () {
|
|||
|
||||
sshmyshellconfig() {
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue