pull/454/merge
Fernando Almeida 2017-01-17 20:29:46 +00:00 committed by GitHub
commit 9e24560500
1 changed files with 1 additions and 2 deletions

View File

@ -80,8 +80,7 @@ Notes:
- In Bash, use **Tab** to complete arguments or list all available commands and **ctrl-r** to search through command history (after pressing, type to search, press **ctrl-r** repeatedly to cycle through more matches, press **Enter** to execute the found command, or hit the right arrow to put the result in the current line to allow editing).
- 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-a** to move cursor to beginning of line, **ctrl-e** to move cursor to end of line, **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** to move by word, **ctrl-a** to move cursor to beginning of line, **ctrl-e** to move cursor to end of line, **ctrl-k** to kill/cut to the end of the line, **ctrl-y** to yank/paste (**alt-y** cycles the kill ring, details about this terminology can be seen in [Bash manual](https://www.gnu.org/software/bash/manual/bash.html#Readline-Killing-Commands)), **ctrl-l** to clear the screen. Use `bind -p` to see the defined keybindings and `man 3 readline` for detailed documentation. There are a lot. For example **alt-.** cycles through previous arguments, **alt-*** expands a glob and **ctrl-alt-e** expands aliases.
- Alternatively, if you love vi-style key-bindings, use `set -o vi` (and `set -o emacs` to put it back).