Follow

The most useful shell alias I ever defined was

alias cde='cd $_'

in bash and zsh `$_` stands for the last argument to the previous command, so I can do e.g.

cp meme.png memes/
cde

@otini
Oh neat. All this time I've been typing `cd ' and pressing M-. to insert the previous last argument.

Sign in to participate in the conversation
Functional Café

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!