Remix.run Logo
mbesto 5 hours ago

The number of times i realized half way that I probably posted the wrong password and so I vigorously type the 'delete' key to reset the input is too damn high

hilliardfarmer 5 hours ago | parent | next [-]

Get out of my head, lol :)

But yeh, never thought this was a problem anyone else delt with. My passwords are all a variant of my on "master password" and sometimes forget which session I'm in so trying to save keystrokes, count backward to where I think the cursor should be.

larsbrinkhoff 5 hours ago | parent | prev | next [-]

Just type Control-U once.

eptcyka 5 hours ago | parent [-]

The Just in that sentence is wholly unjustified. There are plenty of cli/tui/console/shell shortcuts that are incredibly useful, yet they are wholly undiscoverable and do not work cross-platform, e.g. shell motions between macOS and reasonable OSes.

QuantumNomad_ 4 hours ago | parent | next [-]

> shell motions between macOS and reasonable OSes

All the movement commands I know work the same in the terminal on a default install of macOS as it does in the terminal on various Linux distros I use.

Ctrl+A to go to beginning of line

Ctrl+E to go to end of line

Esc, B to jump cursor one word backwards

Esc, F to jump cursor one word forward

Ctrl+W to delete backwards until beginning of word

And so on

Both in current versions of macOS where zsh is the default shell, and in older versions of macOS where bash was the default shell.

Am I misunderstanding what you are referring to by shell motions?

malfist 13 minutes ago | parent | next [-]

What happens when you press home or end?

eptcyka 3 hours ago | parent | prev [-]

Yea, but ctrl + arrows to move cursor between ‘words’ don’t work, especially sad when SSH’ing in from linux. It works fine when using terminal on macOS - you just use command + arrows.

fer 3 hours ago | parent | prev [-]

> e.g. shell motions between macOS and reasonable OSes.

I forgot about this since I started NixOS/home-manager everywhere.

amarant 4 hours ago | parent | prev [-]

The number of times I've posted my sudo password in a random slack channel instead of my terminal is not very high, but too damn high nonetheless

lxgr 3 hours ago | parent | next [-]

The trick is to use a plausible Slack message as your sudo password :)

antod 3 hours ago | parent | prev [-]

Start your password with a forward slash :)