aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-09-27 16:56:13 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-09-27 16:56:13 -0700
commit4f4734fc9b6031a2cb71497d615d153b6b89012d (patch)
tree3977fbbfa14bb039b30b325591e9c4a6dfacca2a
parent3ac28f2b01f802803521dfadb79bf0b2a05cef08 (diff)
Fix some busted escape sequences in docs, and slightly reformat a few examples
-rw-r--r--doc_src/bind.txt4
-rw-r--r--doc_src/echo.txt8
2 files changed, 7 insertions, 5 deletions
diff --git a/doc_src/bind.txt b/doc_src/bind.txt
index 5e5c90f1..e879c208 100644
--- a/doc_src/bind.txt
+++ b/doc_src/bind.txt
@@ -109,7 +109,7 @@ The following special input functions are available:
\subsection bind-example Examples
\fish
-bind \cd 'exit'
+bind \\cd 'exit'
\endfish
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
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
Turns on Vi key bindings and rebinds @key{Control,C} to clear the input line.
diff --git a/doc_src/echo.txt b/doc_src/echo.txt
index c53d3009..69d6df4e 100644
--- a/doc_src/echo.txt
+++ b/doc_src/echo.txt
@@ -51,8 +51,10 @@ If `-e` is used, the following sequences are recognized:
\fish
echo 'Hello World'
-# Print hello world to stdout
+\endfish
+Print hello world to stdout
-echo -e 'Top\nBottom'
-# Print Top and Bottom on separate lines, using an escape sequence
+\fish
+echo -e 'Top\\nBottom'
\endfish
+Print Top and Bottom on separate lines, using an escape sequence