Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use zsh on Mac OS X, with a theme based on "oh-my-zsh".

Each time I run a command, zsh "clears" the screen (really, inserting a few dozens newlines). This is very irritating, but I can't figure out how to turn this off.

What am I missing?

share|improve this question

migrated from Jan 1 '11 at 18:49

This question came from our site for system and network administrators.

Ok, this is a bit weird. I decided to play with the zsh commands in ~/.oh-my-zsh. I arbitrarily commented out "alias history='fc -l 1'" from one of the included files, and suddenly the screen clearing stopped. This is positively weird, and I can't figure out why it'd have that effect. Enlightenment welcome. – optilude Jan 1 '11 at 16:47
Which oh-my-zsh theme are you using? – mkomitee Jan 16 '11 at 15:55

As mentioned in the comments, commenting out the following from ~/.oh-my-zsh/lib/alias.zsh will fix the problem:

alias history='fc -l 1'
share|improve this answer

I have had similar troubles and found a solution by setting the TERM variable in my .zshrc file as so:

if [ `find /usr/share/terminfo -name "xterm-256color" -print` &> /dev/null ]; then
    export TERM='xterm-256color'
    export TERM='xterm'

(No comment about using xterm over rxvt)

share|improve this answer

You must log in to answer this question.