when calling via ssh alias a remote host, strange characters appear
^[[6;3~fhem@UB9:~$ ;3~
-bash: syntax error near unexpected token `;'
in .bashrc
### add to .bash_aliases, for differentiating between multiple remote hosts
sshhelper() {
HOST=`echo $1 | cut -d'@' -f2`
case $HOST in
fhem ) PROFILE="FHEM" ;;
esac
gnome-terminal --window-with-profile=$PROFILE -x bash -c "ssh $1"
}
#https://superuser.com/questions/347512/can-i-have-my-terminal-background-change-based-on-hostname/1368479#1368479
alias sshc=sshhelper
tried this line with and without ;
gnome-terminal --window-with-profile=$PROFILE -x bash -c "ssh $1"
and hints?
thanks
see result of sshc fhem command
and the code