this post was submitted on 29 Mar 2025
21 points (100.0% liked)

Linux

6874 readers
141 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
 

I've been using the terminal for 5 years.

99% of attempts at keeping valuable code snippets failed. Or having a useful command history.

Finally, I looked up how to send a line to terminal.

I use vscode since Atom was discontinued (looking forward to zed). But in the meanwhile, I just added

{
    "key": "ctrl+enter",
    "command": "workbench.action.terminal.runSelectedText",
    "when": "terminalProcessSupported && editorTextFocus && editorLangId =~ /shell|bash|zsh|fish/"
  }

Maybe it helps someone :)

With this, I can finally keep a history of all useful commands I run. Like I can have a systemd shell file where I store the commands that I ran. Or a file to store all my podman commands. Now I do not have to type them anymore, I can just run them.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 1 week ago* (last edited 1 week ago) (1 children)
[โ€“] [email protected] 4 points 1 week ago

I tried using it but it's not the same vibrant community anymore. Zed is much more alife