feat: automatic logout from shells

This commit is contained in:
Michele Cereda
2023-05-25 21:36:43 +02:00
parent 0c38884c74
commit c40ea97e98
2 changed files with 6 additions and 0 deletions

View File

@@ -18,6 +18,9 @@
## TL;DR
```sh
# Logout after 3 minutes of inactivity.
TMOUT=180
# Declare arrays.
ARRAY=(
"first_element"

View File

@@ -51,6 +51,9 @@ Exit files load sequence:
Aliases are expanded when the function definition is parsed, not when the function is executed. Define aliases **before** functions to avoid problems.
```sh
# Logout after 3 minutes of inactivity.
TMOUT=180
# Quoting.
"$scalar"
"${array[@]}"