localhost should be only bash
This commit is contained in:
parent
5184f8dc69
commit
eab99b2745
1 changed files with 7 additions and 3 deletions
10
functions.sh
10
functions.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue