Updated Basic use cases (markdown)

Terminator X 2021-07-18 00:47:26 +05:30
parent 163ca3be6f
commit b29cb9be9e

@ -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>. 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
# 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 if [[ -n $DISPLAY ]]; then
copy_line_to_x_clipboard () { copy_line_to_x_clipboard () {
@ -209,7 +210,7 @@ fi
``` ```
```zsh ```zsh
# zsh: add to ~/.zshrc # zsh: add in ~/.zshrc
# copy current line to clipboard with ^U # copy current line to clipboard with ^U
if [[ -n $DISPLAY ]]; then if [[ -n $DISPLAY ]]; then