$ type ssh
ssh is a function
ssh ()
{
if [ $(hostname) == $(echo $MY_HOST | cut -d. -f1) ]; then
NAME=$(echo 1ドル | cut -d. -f1);
screen -c $MY_HOME/perso/conf/.screenrc -t $NAME $SSH 1ドル;
else
$SSH 1ドル;
fi
}
... quand tu tapes ssh hostname.bar.foo , ça ouvre un nouvel onglet dans screen avec le nom de ton user@hostname ... www.chezmoicamarchedepuislongtemps.org
# un truc comme ca ?
Posté par fouyaya . En réponse au message Screen : le hostname !. Évalué à 1.
ssh is a function
ssh ()
{
if [ $(hostname) == $(echo $MY_HOST | cut -d. -f1) ]; then
NAME=$(echo 1ドル | cut -d. -f1);
screen -c $MY_HOME/perso/conf/.screenrc -t $NAME $SSH 1ドル;
else
$SSH 1ドル;
fi
}
... quand tu tapes ssh hostname.bar.foo , ça ouvre un nouvel onglet dans screen avec le nom de ton user@hostname ... www.chezmoicamarchedepuislongtemps.org