Updated Basic use cases (markdown)

Terminator X 2021-07-18 00:47:26 +05:30
parent 163ca3be6f
commit b29cb9be9e
1 changed files with 3 additions and 2 deletions

@ -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 <kbd>Ctrl-Shift-V</kbd>.
```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