Hacker Newsnew | past | comments | ask | show | jobs | submit | sureshssarda's commentslogin

This will not let you 'bookmark' selected commands which you can run later. I understand we can of course create aliases or small utility scripts, but having a place where we can just store these frequent commands is quite helpful especially with Docker, K8s or Azure/AWS CLI where commands are quite long to type and remember.


> I understand we can of course create aliases or small utility scripts, but having a place where we can just store these frequent commands

But that's exactly what an alias is. Put it on a script that you source when loading the terminal and there you have it

Or you could have a "commands.txt" where you copy/paste commands

Though yeah, maybe there should be a better solution (well, you can always look back history as well)


I use VSCode and Markdown files. You can select anything and run that in the terminal by executing the action 'Terminal: Run Selected text in active terminal'

I have also given it a shortcut: `Ctrl+e, e`. So I can just select something and execute it in the terminal. Works quite well.

(Inspired by a similar feature in Emacs)


Have you published any papers on this? Where can I get more information on the algorithm used?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: