diff --git a/Basic-use-cases.md b/Basic-use-cases.md index 9ff30eb..5cccc15 100644 --- a/Basic-use-cases.md +++ b/Basic-use-cases.md @@ -198,7 +198,8 @@ There are several ways to run commands from `nnn`: The prompt (non-readline `nnn`-internal one) can remember the last executed command. Sometimes it may be desirable copy a command from shell history to the prompt. Keybinds can be configured to copy a command from bash/zsh prompt to the system clipboard. You can use these at the subshell prompt and paste the command at the prompt with Ctrl-Shift-V. ```bash -# bash: add to ~/.bashrc to copy current line to clipboard with ^] +# bash: add in ~/.bashrc +# copy current line to clipboard with ^] if [[ -n $DISPLAY ]]; then copy_line_to_x_clipboard () { @@ -209,7 +210,7 @@ fi ``` ```zsh -# zsh: add to ~/.zshrc +# zsh: add in ~/.zshrc # copy current line to clipboard with ^U if [[ -n $DISPLAY ]]; then