Core
Core: helpers, terminal and the aliasx command. Always loaded.
General
| Name | Runs | What it does | |
|---|---|---|---|
has CMD | true when CMD is installedexample$ has docker && echo yes
yes | ||
aliasx_hint NAME | one-line explanation of an aliasx alias or functionexample$ aliasx_hint gs
gs → git status --short --branch · short status with branch | ||
aliasx_find WORD | loaded aliasx commands whose name or description mentions WORDexample$ aliasx_find port
ports [PORT] · listening TCP ports, or who listens on PORT
freeport PORT · kill what listens on PORT after y/N |
Your own aliases (aliasx add / rm / mine)
| Name | Runs | What it does | |
|---|---|---|---|
$1 | $_q | ${3:-$2}" | |
_aliasx_on_path NAME | print first program NAME found on PATH | ||
_aliasx_topsize N | read "KB<TAB>path" lines, print N largest with human sizes. | ||
asroot CMD... | run CMD as root: sudo for normal users, directly when already root or sudo is missingexample$ asroot apt update
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease | ||
_aliasx_systemd | true when systemd is the running init (not just installed, as in containers) |
Missing programs
| Name | Runs | What it does | |
|---|---|---|---|
_aliasx_pkg_name CMD MANAGER | package that provides CMD | ||
_aliasx_install_cmd MANAGER PKG | the install command for PKG | ||
_aliasx_offer_install CMD [ARGS] | offer to install CMD, then run it |
Terminal
| Name | Runs | What it does | |
|---|---|---|---|
c | clear | clear screen | |
now | date "+%Y-%m-%d %H:%M:%S" | current date and time | |
week | date "+%V" | ISO week number | |
path | echo "$PATH" | tr ":" "\n" | PATH, one entry per line | |
e | ${EDITOR:-vi} | open in your editor | |
envg | env | sort | grep -i | search environment variables | |
reload | re-read ~/.bashrc or ~/.zshrcexample$ reload
(rc file re-read, new aliases active) | ||
yesno PROMPT | ask [y/N]; true only on y/yesexample$ yesno "Deploy?" && ./deploy.sh
Deploy? [y/N] y |
Modes
| Name | Runs | What it does | |
|---|---|---|---|
aliasx COMMAND | find, why, add, rm, mine, mode, profile, conflicts, list, modulesexample$ aliasx why lni
lni → ln -i · link, ask before overwriting |