0

Using zsh / oh-my-zsh / amit theme. Mac / iTerm.

$PS1 is

$(_user_host)${_current_dir} $(git_prompt_info) $(_ruby_version)
%{$fg[$CARETCOLOR]%}▶%{$resetcolor%}

When I clear my screen (with cmd+k), it clears the first line, leaving just the as my prompt. Is there a way to prevent it from clearing the first line?

(I know this is super petty, it's just annoying the heck outta me).

Nic3500
  • 8,144
  • 10
  • 29
  • 40
Mike Manfrin
  • 2,722
  • 2
  • 26
  • 41
  • I removed the bash tag. – Nic3500 Nov 06 '19 at 14:16
  • Not quite what you are looking for, probably, but use Control-L instead of Command-K. – chepner Nov 06 '19 at 17:59
  • 1
    The difference being, of course, that Command-K is handled by the terminal, if even the current command running *in* the terminal isn't currently accepting input, whereas Control-L is read by and acted up by the shell. – chepner Nov 06 '19 at 18:02

0 Answers0