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

  • 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

  • I started using 'w' as a habit on BBS's back in the day... then kept that up when I had an account on super computers in high school...(https://newfutures.aps.edu/supercomputing) it's still muscle memory for me. I have no idea why as most of the machines I'm on now, I'm the only one with an account.

    Old habits die hard. It's just muscle memory at this point.

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

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

    {cd Pr<tab><enter>cd c<tab><enter>}

    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.

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

  • cd to get to the directory of interest. After that, probably workon.

  • It depends what I am trying to do; often the first command will be cd (to access whatever directory I will intend to work on), but not always.

  • Sometimes ls.

    Other times I'll hit enter a few times and then Ctrl+L to clear the screen.

    Sort of feels like tapping my fingers on the desk.

  • Probably "pwd", from the days when it wasn't the prompt / my profile / the shell I was using

  • The command I opened that terminal for.

  • history | grep <thing>

    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.

  • Lol, same here. ls and then clear. Now I'm ready to do whatever I want

  • 99% of the time, I'm ssh'ing to a remote host

    So it's `ssh <host>`

  • no matter what I do `ls` as well

  • cat .ssh/config

    ssh nameIforgot:/to/fix

  • ls -l as a force of habit I guess

  • ls

  • tmux

  • clear