A few of my scripts (keymap changing, public key adding) need to act differently when in a virtual console vs. in an xterm. What's the real code for #!/bin/ksh if [[ in_a_virtual_console ]]; then ...
Per default xterm starts an interactive shell. But you can also configure it to start an interactive login-shell. That means that with starting an xterm you get the same kind of shell like logging in ...
I have set up zsh to use emacs mode. But typing Alt+f or Alt+b inserts weird symbols (accented letters and so on), rather than moving around by word in the shell like it should. Since I don't ever ...