On centos I can skip a word by hitting ctrl + arrow (left or right) in a terminal. When I ssh into a FreeBSD box and I try the same pattern I get:
$ tail -f 20120412.log;5D;5D;5D
(each try = ;5D)
Is there a way to fix this? I am using Ubuntu 12.04 + Terminator.
Thanks in advance.
A
.inputrc
in your home directory will cause ctrl+left to stop working on Ubuntu (for example).To get everything working, add the following to
~/.inputrc
:If You use ZSH, then use this at /etc/zshrc file.
Unless you have changed these from default, the shell that you're using on Ubuntu is bash. On FreeBSD, the default shell is csh. You can change your shell with the following command in both OSs:
Set your shell in FreeBSD to /usr/local/bin/bash. Bash is not part of FreeBSD, so if you haven't already, install it from ports:
One last thing: don't change the shell for root. This is what the "toor" account is for: all the privileges of root, but you can set the shell to whatever you want. The reason being that there aren't any system activities that run under toor, so you won't break anything or confuse anyone by changing that account's shell to something you are used to (or may be more functional as a login shell).
Looks like you might have the wrong $TERM setting.
echo $TERM
to find out what your current setting is. Might want to use xtermexport TERM=xterm-256color
.The shell you're running on the FreeBSD machine probably doesn't support that control sequence. Without knowing what shell you're running on either end, though, it's hard to say for sure.