mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Fix some busted escape sequences in docs, and slightly reformat a few examples
This commit is contained in:
@@ -109,7 +109,7 @@ The following special input functions are available:
|
|||||||
\subsection bind-example Examples
|
\subsection bind-example Examples
|
||||||
|
|
||||||
\fish
|
\fish
|
||||||
bind \cd 'exit'
|
bind \\cd 'exit'
|
||||||
\endfish
|
\endfish
|
||||||
Causes `fish` to exit when @key{Control,D} is pressed.
|
Causes `fish` to exit when @key{Control,D} is pressed.
|
||||||
|
|
||||||
@@ -120,6 +120,6 @@ Performs a history search when the @key{Page Up} key is pressed.
|
|||||||
|
|
||||||
\fish
|
\fish
|
||||||
set -g fish_key_bindings fish_vi_key_bindings
|
set -g fish_key_bindings fish_vi_key_bindings
|
||||||
bind -M insert \cc kill-whole-line force-repaint
|
bind -M insert \\cc kill-whole-line force-repaint
|
||||||
\endfish
|
\endfish
|
||||||
Turns on Vi key bindings and rebinds @key{Control,C} to clear the input line.
|
Turns on Vi key bindings and rebinds @key{Control,C} to clear the input line.
|
||||||
|
|||||||
@@ -51,8 +51,10 @@ If `-e` is used, the following sequences are recognized:
|
|||||||
|
|
||||||
\fish
|
\fish
|
||||||
echo 'Hello World'
|
echo 'Hello World'
|
||||||
# Print hello world to stdout
|
|
||||||
|
|
||||||
echo -e 'Top\nBottom'
|
|
||||||
# Print Top and Bottom on separate lines, using an escape sequence
|
|
||||||
\endfish
|
\endfish
|
||||||
|
Print hello world to stdout
|
||||||
|
|
||||||
|
\fish
|
||||||
|
echo -e 'Top\\nBottom'
|
||||||
|
\endfish
|
||||||
|
Print Top and Bottom on separate lines, using an escape sequence
|
||||||
|
|||||||
Reference in New Issue
Block a user