From 7b982ed2e095bbd3c5ffa5aefe21cec735c3a5fa Mon Sep 17 00:00:00 2001 From: abednarik Date: Sat, 20 Jun 2015 14:28:14 -0300 Subject: [PATCH] Added bash shortcuts in MacOS for moving back/forward one word --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7836a3c..7a7eb9d 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Notes: - In Bash, use **Tab** to complete arguments and **ctrl-r** to search through command history. -- In Bash, use **ctrl-w** to delete the last word, and **ctrl-u** to delete all the way back to the start of the line. Use **alt-b** and **alt-f** to move by word, **ctrl-k** to kill to the end of the line, **ctrl-l** to clear the screen. See `man readline` for all the default keybindings in Bash. There are a lot. For example **alt-.** cycles through previous arguments, and **alt-*** expands a glob. +- In Bash, use **ctrl-w** to delete the last word, and **ctrl-u** to delete all the way back to the start of the line. Use **alt-b** and **alt-f** (**Esc-b** and **Esc-f** in MacOS) to move by word, **ctrl-k** to kill to the end of the line, **ctrl-l** to clear the screen. See `man readline` for all the default keybindings in Bash. There are a lot. For example **alt-.** cycles through previous arguments, and **alt-*** expands a glob. - Alternatively, if you love vi-style key-bindings, use `set -o vi`.