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 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.
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.
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.
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.
.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
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.
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.
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.
35 comments
[ 3.3 ms ] story [ 67.8 ms ] threadOld habits die hard. It's just muscle memory at this point.
link: https://github.com/Valiev/almostontop/blob/master/README.md
I guess that's my goto.
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.
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...
https://stackoverflow.com/questions/27613209/how-to-automati...
ll and la are shorthand for ls -l and ls -la
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.
ctrl+r (reverse history search) + https://github.com/junegunn/fzf
is a game changer
So it's `ssh <host>`
{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.
ssh nameIforgot:/to/fix
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.