Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit b1a3eb4

Browse files
author
vars1ty
committed
2 parents ca192d0 + c605c21 commit b1a3eb4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ALIASES.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Aliases
2+
> **Warning**:
3+
> Aliases relies mainly the presence of `/etc/os-release`, which may or may not be available on all distributions.
4+
>
5+
> If `lxinfo` (the library used) fails to retrieve any information, then aliases will be disabled.
6+
***
27
These aliases are only valid for commands (+ tooltip commands).
38
***
49
- `%username%` - Username
@@ -13,8 +18,8 @@ These aliases are only valid for commands (+ tooltip commands).
1318
- `%used_mem%` - Total amount of used memory (in GB)
1419

1520
## I can just use `whoami`, why all of this?
16-
You may use completely dynamic commands like `whoami` if you want, the benefit over aliases though are:
21+
You may use completely dynamic commands like `whoami` if you want, the benefit with using aliases are:
1722

18-
1. Lower overhead due to being cached and retrieved via `libc`, rather than expensive commands
23+
1. Lower overhead due to being retrieved via `libc`, rather than expensive commands
1924
2. A lot faster to process
20-
3. Cached at startup, then reused afterwards
25+
3. Cached at startup, then reused afterwards - **To be changed since it's a design flaw**

0 commit comments

Comments
 (0)