added file for bash things

This commit is contained in:
quak
2024-10-17 00:15:11 +02:00
parent 9ccdb271d7
commit daf7507c48
2 changed files with 39 additions and 4 deletions

35
docs/bash.md Normal file
View File

@@ -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 "<shortcut-to-unbind>"
```
Example:
```bash
bind -r "\C-h"
```
`\C` is CTRL, `\M` is ALT

View File

@@ -1,9 +1,9 @@
# Commands/Tools to look at # Commands/Tools to look at
This file documents potentially handy commands and tools to look at or simply remember their existence. This file documents potentially handy commands and tools to look at or simply remember their existence.
## Potentially useful ## Take a look at
* fzf * [ ] fzf
* tmux * [x] tmux --> very good
## Remember ## Remember
* envsubst * [ ] envsubst