From 0ad945d245f2ed84d4f6bf1a50c26cd86ca4928c Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Thu, 28 May 2015 07:03:14 +0200 Subject: [PATCH] Polishing documentation shorcuts rendering. --- CONFIGURATION.md | 12 ++++++------ DOCUMENTATION.md | 6 +++--- README.md | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CONFIGURATION.md b/CONFIGURATION.md index 821b9d9..2da5ccf 100644 --- a/CONFIGURATION.md +++ b/CONFIGURATION.md @@ -38,31 +38,31 @@ bind -S ## BASH EMACS KEYMAP (DEFAULT) -Bind `hh` to a Bash key e.g. to `Ctrl-r`: +Bind `hh` to a Bash key e.g. to Ctrl-r: ```bash bind '"\C-r": "\C-ahh \C-j"' ``` -or `Ctrl-Alt-r`: +or Ctrl-Alt-r: ```bash bind '"\e\C-r":"\C-ahh \C-j"' ``` -or `Ctrl-F12`: +or Ctrl-F12: ```bash bind '"\e[24;5~":"\C-ahh \C-j"' ``` -Bind `hh` to `Ctrl-r` only if it is interactive shell: +Bind `hh` to Ctrl-r only if it is interactive shell: ```bash if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi ``` ## BASH VI KEYMAP -Bind `hh` to a Bash key e.g. to `Ctrl-r`: +Bind `hh` to a Bash key e.g. to Ctrl-r: ```bash bind '"\C-r": "\C-ahh \C-j"' ``` ## ZSH EMACS KEYMAP (DEFAULT) -Bind `hh` to a Zsh key e.g. to `Ctrl-r`: +Bind `hh` to a Zsh key e.g. to Ctrl-r: ```bash bindkey -s "\C-r" "\eqhh\n" ``` diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index a78ec18..be18cc6 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -33,7 +33,7 @@ Table of contents: Features -------- -`hh` is typically started by pressing `Ctrl-r` after +`hh` is typically started by pressing Ctrl-r after you configure it for this shorcut for your shell. However, you can run it as a normal program just by typing: ```bash @@ -80,10 +80,10 @@ Favorite Commands commands. A new favorite command can be added from -ranking or raw history view by pressing `Ctrl-f`. +ranking or raw history view by pressing Ctrl-f. You can check your favorite commands by choosing -favorite view - rotate views using `Ctrl-/` or start +favorite view - rotate views using Ctrl-/ or start `hh` by adding `favorites` to `HH_CONFIG` environment property. A favorite command can be choosen just by pressing `ENTER` when on command in favorite view. diff --git a/README.md b/README.md index 08e0c69..8d6a24e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ for a tool that is able to manage your **favorite** commands? HSTR is a command line utility that brings improved Bash command completion from the history. It aims to make completion **easier** and more **efficient** -than `Ctrl-r`. +than Ctrl-r. Apart to the completion, history can be **managed** (you can remove commands that e.g. contain sensitive information like