From daf7507c4817fe476a1b0b886e61139c7dbec6c6 Mon Sep 17 00:00:00 2001 From: quak Date: Thu, 17 Oct 2024 00:15:11 +0200 Subject: [PATCH] added file for bash things --- docs/bash.md | 35 +++++++++++++++++++ ...-to-look-at.md => interesting_commands.md} | 8 ++--- 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 docs/bash.md rename docs/{commands-to-look-at.md => interesting_commands.md} (68%) diff --git a/docs/bash.md b/docs/bash.md new file mode 100644 index 0000000..b3dfd7a --- /dev/null +++ b/docs/bash.md @@ -0,0 +1,35 @@ +# bash + +## shortcut list +| Shortcut | Action | +| :--------- | :----- | +| ctrl+a | go to the start of the line | +| ctrl+e | go to the end of the line | +| ctrl+b | move one character backwards | +| ctrl+f | move one character forwards | +| alt+b | move one word backwards | +| alt+f | move one word forwards | +| **ctrl+w** | delete to last white space | +| alt+? | show completion options | +| **ctrl+r** | search command history backwards | +| ctrl+g | exit history search | +| ctrl+p | previous command in history | +| ctrl+n | next command in history | +| ctrl+o | run command and re-enter it | +| ctrl+l | clear screen | +| ctrl+s | suppress output to screen | +| ctrl+q | resume output to screen | +| ctrl+c | terminate command | +| ctrl+z | suspend current command (resume with `fg`) | +| **ctrl+d** | exit shell | + +## unbind shortcuts +bash shortcuts can be disabled with the following command in `.bashrc`/`.bash_profile`: +```bash +bind -r "" +``` +Example: +```bash +bind -r "\C-h" +``` +`\C` is CTRL, `\M` is ALT diff --git a/docs/commands-to-look-at.md b/docs/interesting_commands.md similarity index 68% rename from docs/commands-to-look-at.md rename to docs/interesting_commands.md index 25c3d02..982250d 100644 --- a/docs/commands-to-look-at.md +++ b/docs/interesting_commands.md @@ -1,9 +1,9 @@ # Commands/Tools to look at This file documents potentially handy commands and tools to look at or simply remember their existence. -## Potentially useful -* fzf -* tmux +## Take a look at +* [ ] fzf +* [x] tmux --> very good ## Remember -* envsubst +* [ ] envsubst