3 ms·
If you're using something like vim or emacs then yeah I would agree with you but for something like docker commands, there's just no easy way to copy a specific
by _fat_santa 9mo ago
If you're using something like vim or emacs then yeah I would agree with you but for something like docker commands, there's just no easy way to copy a specific container ID without using the mouse (if there is let me know lol).
My logic is if your hand is already on the mouse, it's going to be faster to paste with a mouse than your keyboard.
- vladvasiliu 9mo ago> for something like docker commands, there's just no easy way to copy a specific container ID without using the mouse Some terminals have a mode where you can move the cursor around the history, and allow searching / copying / pasting. Alacritty and tmux come to mind, others may also implement something similar.
- WD-42 9mo agoIt’s still annoying to move. The only way it’s practical is if you can store a regex to match container ids or whatever, and quickly fetch it
- Y_Y 9mo agoI do something that, but just parse the output of `docker ps` or whatever. Since each line has the same format it's very straightforward.
- fragmede 9mo agooh heh I do docker ps -a | grep image_name_or_whatever | awk1 | pbcopy (or xclip on linux) (awk1 is an alias for awk "{print $1}" and I just have awk1-10 or whatever) to grab the container id and put it on the clipboard