aliasman: A cross-shell (POSIX-compliant) alias manager for bash, zsh, and fish
https://github.com/BeyondCodeBootcamp/aliasman| Installer Source| Releases (json) (tab)
aliasman: A cross-shell (POSIX-compliant) alias manager for bash, zsh, and fish
https://github.com/BeyondCodeBootcamp/aliasman| Installer Source| Releases (json) (tab)
To update or switch versions, run webi aliasman@stable
(or @v1.0.0
, @beta
,
etc).
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.config/envman/alias.env
~/.local/bin/aliasman
aliasman
helps you love your aliases again! 🥸
Set 'em once, use 'em everywhere!
(and all in just one dotfile, for an on-the-go friendly config)
aliasman <alias-name> <command-name> [args, pipes, redirs, etc]
An alias is just shorthand for a shell function.
Take a long command like this:
git commit -m "feat: new feature"
And turn it into a short command, like this:
gc "feat: new feature"
(that would be aliasman gc 'git commit -m'
)
ll
, ls -lAhF
!?aliasman ll 'ls -lAhF'
source ~/.config/envman/alias.env
ll
drwxr-xr-x aj wheel 416 B Thu Feb 9 02:08:39 2023 📂 .git/
.rwxr-xr-x aj staff 6.2 KB Thu Feb 9 01:36:30 2023 💻 aliasman*
.rw-r--r-- aj wheel 16 KB Wed Feb 8 21:51:06 2023 🔑 LICENSE
.rw-r--r-- aj wheel 1.4 KB Thu Feb 9 01:47:13 2023 📄 README.md
Use aliases to make other tools you find around webi even more convenient ⚡️ (and powerful 💪).
aliasman curl 'curlie'
aliasman diffy 'diff -y --suppress-common-lines'
aliasman gc 'git commit -m'
aliasman gri 'git rebase -i'
aliasman la 'lsd -AF'
aliasman ll 'lsd -lAhF'
aliasman ls 'lsd -F'
aliasman rgi 'rg -i'
aliasman tree 'lsd -F --tree --group-dirs=last'
# random password generator
aliasman rnd 'xxd -l24 -ps /dev/urandom'
Just run the command again!
aliasman ll 'lsd -l'
aliasman ll 'lsd -lAhF'
With --delete
!
aliasman --delete ll
Just supply the name!
aliasman rnd
alias rnd='xxd -l24 -ps /dev/urandom'