Live data from Hacker News

Ask HN: Can I see your cheatsheet?

news.ycombinator.com

11–20 of 173 posts

Re: Ask HN: Can I see your cheatsheet?

#11
I keep some as shell aliases, shell scripts or Git aliases, but mostly I just use my shell history, finding commands with Ctrl+R and a few characters that I know to be in there somewhere. (If you want to do this, make sure you set its limit high enough so you don’t lose stuff.)

Re: Ask HN: Can I see your cheatsheet?

#15
post #3

Shell scripting: https://pilabor.com/blog/2021/04/shell-scripting-cheatsheet/ Markdown: https://pilabor.com/blog/2021/04/markdown-cheatsheet/

> mkdir if not exists [ -d "${DIR}" ] || (mkdir -p "${DIR}") No need to check when using "-p".

You are absolutely right :-) I think, that this is a relict, since I personally use an alias for mkdir:

  alias mkdir='mkdir -p'
Thank you

Re: Ask HN: Can I see your cheatsheet?

#16
My cheatsheet happens to be just my muscle memory. And, for applications I don't use often, mostly just intuitive guesses.

Sounds pretty messy but I've never felt the need to maintain a cheatsheet.

I don't see why one would. I know I'm possibly being naive.

Re: Ask HN: Can I see your cheatsheet?

#19

On a related note: has anyone used a good tool for using/inserting these kinds of custom snippets? It would be neat to have a snippet manager with quick search bound to a keypress.

Raycast has a code snippets plugin

https://www.raycast.com/ https://www.raycast.com/extensions/snippets/

Re: Ask HN: Can I see your cheatsheet?

#20

On a related note: has anyone used a good tool for using/inserting these kinds of custom snippets? It would be neat to have a snippet manager with quick search bound to a keypress.

I use https://www.alfredapp.com/help/features/snippets/

Combined with https://www.alfredapp.com/help/features/clipboard/ you get great productivity, especially when working on sys admin terminal kind of stuff

Post reply on HN