Live data from Hacker News

What's Your Go to Command When You Open a Terminal?

news.ycombinator.com

11–20 of 36 posts

Re: What's Your Go to Command When You Open a Terminal?

#12
post #10

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

Can you run ‘git status’ or allow it to show history from certain commands?

Re: What's Your Go to Command When You Open a Terminal?

#13
post #10

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

Can you run ‘git status’ or allow it to show history from certain commands?

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

Re: What's Your Go to Command When You Open a Terminal?

#14
post #10

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

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

Re: What's Your Go to Command When You Open a Terminal?

#15
post #11

.bashrc runs tmux for me automatically but only if I ssh in. It removed just enough friction from using tmux that I finally put in the time to learn it. Would recommend/10 https://stackoverflow.com/questions/27613209/how-to-automati...

Is there a point to using tmux for someone who mostly works on their local machine?

Re: What's Your Go to Command When You Open a Terminal?

#18
post #10

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

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

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

Re: What's Your Go to Command When You Open a Terminal?

#19
post #6

I have some some shortcuts to open some of my most used "Go to" SSH locations, I'm too lazy to manually write ssh root@192... so cmd+opt+r ssh into my router, cmd+opt+p ssh into RPi etc...

`~/.ssh/config` is pretty awesome

Yes, obviously my keys are already stored, I've already said that im lazy? =)

Re: What's Your Go to Command When You Open a Terminal?

#20

Earlier quoted context omitted.

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

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

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

Post reply on HN