Hi, gfp <[email protected]> writes:
> I have got this stout in my bash shell
>
>
> GUIX_PROFILE="/home/gfp/.guix-profile"
> . "$GUIX_PROFILE/etc/profile"
>
> My question was:
>
> how can I get back to the 3rd and 4th last line
> copy/kill it and paste/yank it without mouse
> so that I can set the variables?
As other answers said, it is terminal dependent. Here is a suggestion
if your terminal does not allow you to copy/paste with keyboard
shortcuts.
Run your command in a terminal multiplexer (e.g. tmux). Then, use
shortcuts from the terminal multiplexer to move around, copy and paste
text.
Example in tmux (see man tmux):
1. enter the "copy mode",
Keybinding: look for "Enter copy mode" in the man page.
2. move to the G of "GUIX_PROFILE=",
Keybinding: in emacs mode, you can use the arrow keys.
3. start selecting code,
Keybinding: look for "begin-selection".
4. move to the end of the second line,
5. copy the text and exit the copy mode,
Keybinding: look for "copy-selection-and-cancel".
6. paste the text.
Keybinding: look for "paste-buffer".
Note: actual keybindings may depend on your tmux configuration (if any)
and on whether you are in emacs mode or vi mode. This is why I
did not include any actual keybinding above.
Best regards,
--
Arnaud
signature.asc
Description: PGP signature
