Initial set of quick help categories were used from https://github.com/RehanSaeed/Bash-Cheat-Sheet
I will add commands and refine help references as things go on. All information is stored in scoped variables in files:
- include/quickhelp.hpp
- include/commandslist.hpp
Feel free to make a pull request with any correction or additions.
-
Clone the repository:
git clone https://github.com/IllicitFrog/BashQuickHelp.git
-
Navigate to the repository directory:
cd BashQuickHelp -
Run Cmake to resolve dependancies as needed:
cmake -S . -B build -
Install the built packages leaving bashquickhelp binary in your bin folder:
sudo cmake --build build --target install
-
Add the following line to your
.bashrcfile to bind theCtrl+hshortcut to thehelpmefunction:bind -x '"\C-h": bashquickhelp ${READLINE_LINE:0:$READLINE_POINT}'
Ensure .bashrc is sourced, by restarting the terminal or with:
source .bashrc
After completing the installation steps, you can use the Ctrl+h shortcut in your terminal to invoke the bashquickhelp function. This function will provide quick help based on the current input you have typed.
For example, if you have typed part of a command and press Ctrl+h, the bashquickhelp function will be triggered to assist you with relevant information or suggestions.
Make sure to customize the quickbashhelp function in your .bashrc to suit your specific needs.
