From b29cb9be9e2133be565733df1ecc2bdaa5755837 Mon Sep 17 00:00:00 2001 From: Terminator X Date: Sun, 18 Jul 2021 00:47:26 +0530 Subject: [PATCH] Updated Basic use cases (markdown) --- Basic-use-cases.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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