Live data from Hacker News

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

news.ycombinator.com

21–30 of 36 posts

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

#21
post #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?

I would say having the exact same keyboard shortcuts for interacting with windows, panes, etc for both your desktop as well as any other machine you work with is worthwile having.

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

#23
post #20

Earlier quoted context omitted.

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 short…

I 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-differenc...

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

#28
I always go to the same place, my programming directory, so for years I've done the sequence:

{cd Prcd c}

Takes me to my current project folder, and there I can use gcc or vim or whatever I need to do. I thought about shortening it or setting my terminal to start in that directory but the ritual is important to me, it sets me in the right mood, for whatever reason.

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

#29

history | grep I use a number of tools and I've often forgotten an individual command, or when I'm using tools like curl or docker that have a long single line command that I know I can't remember.

Oh man, I'm about to blow your mind.

ctrl+r (reverse history search) + https://github.com/junegunn/fzf

is a game changer

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

#30

history | grep I use a number of tools and I've often forgotten an individual command, or when I'm using tools like curl or docker that have a long single line command that I know I can't remember.

Oh man, I'm about to blow your mind. ctrl+r (reverse history search) + https://github.com/junegunn/fzf is a game changer

Neat, I'll check it out.
Post reply on HN