adarsh / dotfiles

my dotfiles - configurations for developing in OS X
8 stars 4 forks source link

Clear the screen before each command #53

Closed adarsh closed 7 years ago

adarsh commented 7 years ago

Reason for Change

If the history mechanism is active (regardless of whether the line was discarded from the history buffer), the string that the user typed is passed as the first argument, otherwise it is an empty string. The actual command that will be executed (including expanded aliases) is passed in two different forms: the second argument is a single-line, size-limited version of the command (with things like function bodies elided); the third argument contains the full text that is being executed.

http://zsh.sourceforge.net/Doc/Release/Functions.html

edwardloveall commented 7 years ago

Out of curiosity, if you're using Terminal.app or iTerm, do you not even want the overhead of clearing the screen with ⌘K?

captbaritone commented 7 years ago

You've gone mad!! I'll be curious to see if this works for you long term. If so, :clap:

adarsh commented 7 years ago

@edwardloveall I'm on iTerm2 and Command-K will clear the whole screen, which includes all of my tmux splits:

Before: image

After: image

But yeah, I don't want the overhead of another keystroke.

adarsh commented 7 years ago

@captbaritone Maybe! Although I already love it. The rare examples where I need the history, I can scroll back in a tmux pane.