misc: cleanup
This commit is contained in:
@@ -105,8 +105,8 @@ See something that is incorrectly described, buggy or outright wrong? Open an is
|
|||||||
* [TRAPS](#traps)
|
* [TRAPS](#traps)
|
||||||
* [Do something on script exit](#do-something-on-script-exit)
|
* [Do something on script exit](#do-something-on-script-exit)
|
||||||
* [Ignore terminal interrupt (CTRL+C, SIGINT)](#ignore-terminal-interrupt-ctrlc-sigint)
|
* [Ignore terminal interrupt (CTRL+C, SIGINT)](#ignore-terminal-interrupt-ctrlc-sigint)
|
||||||
* [React to window resize.](#react-to-window-resize)
|
* [React to window resize](#react-to-window-resize)
|
||||||
* [Do something before every command.](#do-something-before-every-command)
|
* [Do something before every command](#do-something-before-every-command)
|
||||||
* [Do something when a shell function or a sourced file finishes executing](#do-something-when-a-shell-function-or-a-sourced-file-finishes-executing)
|
* [Do something when a shell function or a sourced file finishes executing](#do-something-when-a-shell-function-or-a-sourced-file-finishes-executing)
|
||||||
* [PERFORMANCE](#performance)
|
* [PERFORMANCE](#performance)
|
||||||
* [Disable Unicode](#disable-unicode)
|
* [Disable Unicode](#disable-unicode)
|
||||||
@@ -1311,14 +1311,14 @@ trap 'printf \\e[2J\\e[H\\e[m' EXIT
|
|||||||
trap '' INT
|
trap '' INT
|
||||||
```
|
```
|
||||||
|
|
||||||
## React to window resize.
|
## React to window resize
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Call a function on window resize.
|
# Call a function on window resize.
|
||||||
trap 'code_here' SIGWINCH
|
trap 'code_here' SIGWINCH
|
||||||
```
|
```
|
||||||
|
|
||||||
## Do something before every command.
|
## Do something before every command
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
trap 'code_here' DEBUG
|
trap 'code_here' DEBUG
|
||||||
|
|||||||
@@ -20,14 +20,14 @@ trap 'printf \\e[2J\\e[H\\e[m' EXIT
|
|||||||
trap '' INT
|
trap '' INT
|
||||||
```
|
```
|
||||||
|
|
||||||
## React to window resize.
|
## React to window resize
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Call a function on window resize.
|
# Call a function on window resize.
|
||||||
trap 'code_here' SIGWINCH
|
trap 'code_here' SIGWINCH
|
||||||
```
|
```
|
||||||
|
|
||||||
## Do something before every command.
|
## Do something before every command
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
trap 'code_here' DEBUG
|
trap 'code_here' DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user