mirror of
https://github.com/jarun/nnn.git
synced 2024-11-23 19:31:28 +00:00
Updated Basic use cases (markdown)
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
|
||||||
|
|
Loading…
Reference in a new issue