9
votes
3answers
279 views

How can my script know when I'm in a virtual console vs. an xterm?

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 ...
4
votes
1answer
2k views

Run xterm with login shell or not?

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 ...
2
votes
1answer
454 views

Emacs mode in zsh: M-b M-f etc. show weird symbols

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 ...