5 ms·
I use zsh and like keeping my terminal clear, so I found a zsh script called almostontop which clears on pressing enter. link: https://github.com/Valiev/almost
by oriori 5y ago
I use zsh and like keeping my terminal clear, so I found a zsh script called almostontop which clears on pressing enter.
link: https://github.com/Valiev/almostontop/blob/master/README.md https://github.com/Valiev/almostontop/blob/master/README.md
- ozzythecat 5y agoCan you run ‘git status’ or allow it to show history from certain commands?
- oriori 5y agoOf course it only clears when you run a new command, or press enter. Basically think of it like typing clear after running a command. You can also scroll up and find the last output.
- jaredsohn 5y agoFor people who want this without downloading a script, pressing cmd-k on a Mac (or equiv on other operating systems) will do this quickly on demand. I guess that's my goto.
- cutthegrass2 5y agoAhh, useful thanks. I've been using Ctrl-l for years. cmd-k is an easier 'chord' for me on the kinesis so I'll switch.
- gls2ro 5y agoIf you are logging in in multiple *nix systems I suggest you keep the Ctrl+l. I started to notice that the more I adopt in terminal specific commands to MacOS the hard is to be productive while I login to various systems. I want also to force myself (but did not do it yet) to use a simpler Vim configuration. Maybe just line numbers so that when I login into a new system I should not need any plugin or any other shortcuts. Still I like my .vimrc file but I plan to do this in near future.
- jaredsohn 5y agoI assume you're talking about physically logging into different machines since cmd-k is a shortcut key for the terminal and will work regardless of which machine you ssh into. cmd-k works well for me since I don't think I've personally logged in directly to a non-Mac *nix-like system in 15+ years. vim is different since it requires configuration on the same system. This superuser explains some subtle differences between the two commands: https://superuser.com/questions/819593/what-is-the-difference-between-ctrll-and-cmdk-for-clearing-the-terminal-screen https://superuser.com/questions/819593/what-is-the-differenc...