Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/bin.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ For parameter formats check said section in the script (Bash syntax).

An example params file:

```
```bash
# Let's have bit longer tests
test_run_time_quick=20
# Run only one deep memory benchmark
Expand Down Expand Up @@ -203,15 +203,15 @@ After signing they can be loaded with `modprobe`.
For this you need a MOK key and certificate and it needs to be enrolled in EFI:

1. Generate MOK key
```
```bash
openssl genpkey -algorithm rsa -out MOK_KEY
```
1. Create MOK certificate
```
```bash
openssl req -new -x509 -key MOK_KEY -outform DER -out MOK_CERT
```
1. Enroll MOK certificate
```
```bash
mokutil --import MOK_CERT
```
1. Reboot and perform enrolling
Expand Down Expand Up @@ -248,7 +248,7 @@ Useful if you need to send a string to some application, but it can receive that

Example:

```
```bash
export ECHO_WRAP=password
export SSH_ASKPASS=/path/to/wrecho
ssh-add SSH_KEY </dev/null
Expand Down
6 changes: 3 additions & 3 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ For detailed instructions on using the loader check [Reference](lib/_loader.md).
**Installation steps**

1. Clone Git repository
```
```bash
git clone https://github.com/es-progress/shell.git SHELL_DIR
```
1. Set `ES_SHELL_LOADER` to point to `lib/_loader.sh`. Best to put this in your `.bashrc`.
```
```bash
export ES_SHELL_LOADER="SHELL_DIR/lib/_loader.sh"
```
1. (Optional) Add `bin` to your `PATH` so you can run scripts just by name
```
```bash
PATH="SHELL_DIR/bin:${PATH}"
```

Expand Down
4 changes: 2 additions & 2 deletions docs/lib/_loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Basically, you need to source this file in any script where you want to use libr

**Usage in scripts**

```
```bash
# Source loader
. /path/to/shell/lib/_loader.sh

Expand All @@ -20,7 +20,7 @@ error-exit "Nothing to do"
If you do the envvar way, you need to set `/path/to/shell/lib/_loader.sh` in `ES_SHELL_LOADER`.
You can do this in `.bashrc` or just when running a script:

```
```bash
ES_SHELL_LOADER=/path/to/lib/_loader.sh backup
```

Expand Down
2 changes: 1 addition & 1 deletion docs/lib/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ _E_NO_CHANGE Report no change. This can be used for idempotent scripts.

**Usage**

```
```bash
exit "${_E_ABORT}"
```

Expand Down
2 changes: 1 addition & 1 deletion docs/lib/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Content inside sections are returned unparsed, so format is up to you (square br

Config file example:

```
```ini
# This is a comment

# Whitespace allowed before comments
Expand Down
4 changes: 2 additions & 2 deletions docs/lib/ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ TXT_NORM Clear all formatting.

**Usage**

```
```bash
echo -e "${TXT_BOLD}${TXT_YELLOW}I'm in bold yellow${TXT_NORM} This is unformatted text"
```

Expand Down Expand Up @@ -100,7 +100,7 @@ MESSAGE Message to print, default: "Done."

## print-header

Print header: text with yellow font-color after a new-line.
Print header: text with yellow font-color on its own line.

**Usage**

Expand Down