ruby relink and terminal settings