Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vars1ty committed Jan 23, 2023
2 parents ca192d0 + c605c21 commit b1a3eb4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ALIASES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Aliases
> **Warning**:
> Aliases relies mainly the presence of `/etc/os-release`, which may or may not be available on all distributions.
>
> If `lxinfo` (the library used) fails to retrieve any information, then aliases will be disabled.
***
These aliases are only valid for commands (+ tooltip commands).
***
- `%username%` - Username
Expand All @@ -13,8 +18,8 @@ These aliases are only valid for commands (+ tooltip commands).
- `%used_mem%` - Total amount of used memory (in GB)

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

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

0 comments on commit b1a3eb4

Please sign in to comment.