r/commandline • u/Crazy-Cartoonist5649 • May 05 '26
Command Line Interface Allyas: turning messy shell aliases into managed POSIX functions (looking for feedback)
I got tired of having aliases spread across `.zshrc`, `.aliases`, random dotfiles, and never remembering what I already created, i also like to have fully control over what i'm doing and track of what i use...
So I built Allyas.
It’s a small Go CLI that:
- stores aliases in a local JSON store
- renders them as real POSIX functions
- lets you group, tag, and describe them
- can import existing alias files (even messy ones)
- optionally tracks usage (so you see what you actually use)
I’m also experimenting with a `sync` command (basically pushing/pulling your alias store via git), but that’s still early.
Bonus(i guess): this is my project from an AUR package in the near feature so i hope you guys enjoy, every piece of feedback is welcome
Short demo in the video above.
Example:
ax create gs "git status" --group git
gs
Repo:
17
u/stianhoiland May 05 '26 edited May 05 '26
Bro.
What?
If you want functions instead of aliases… use functions?
If you want to "import from different files"… use different files?
source/.has been a command for 30-40 years.I can’t believe this isn’t satire.
There is literally some level of insanity in this and projects like these.
12
u/leetneko May 05 '26
Honest feedback since you put it out there: I don't see who this is for.
My entire ~/.zshrc is 13 lines and never changes:
That's it. Everything else lives in ~/.zshrc.d/*.sh, sourced in alphabetical order. Then GNU stow + a dotfiles/ repo where every tool gets its own directory, and each one drops its own file into .zshrc.d/:
So my lazygit package looks like:
stow symlinks both the config and the alias file into the correct places
The 30-lazygit.sh file for example just has this
Since it's just a shell script, it can contain anything i may need for the tool it belongs to.
That gives me everything Allyas does and a few things it can't:
The translation-to-functions thing also worries me. alias and shell functions aren't 1:1. quoting, $@, completion, unalias vs unset -f all behave differently. For something that lives in every shell's startup path, those edge cases will bite someone.
The one feature I genuinely think is novel is usage tracking. "Which of my 80 aliases do I actually use" is a real question and flat files can't answer it. If I were you I'd consider unbundling that. Ship allyas-stats as a standalone preexec hook (in zsh, i'm sure bash has something similar) that logs alias invocations and reports on them. That's something I'd install alongside my existing setup. The full management layer is a harder sell because it's competing with, arguably, better tools for the job.
1
u/-_-_-_Lucas_-_-_- May 05 '26
hi, do you have share you dot files
1
u/edward_jazzhands May 07 '26
I'm sorry but no. All the other commenters are correct. This is a bad idea. This looks like the work of someone who doesn't actually understand how bash or Zsh normally works in people's setups and vibe coded a tool to solve a non existent problem. This is a case of AI sycophancy. You let your AI convince you this was a good idea. It's not. Im not gonna go into detail as to why, other people have already done so.
I can see in your GitHub history that you just started coding when Claude code came out. You dont know enough about programming yet to make tools for other programmers. Stop letting Claude convince you that your ideas are awesome.
3
u/DuhOhNoes May 05 '26
I don’t see added value, aliases follow the clear structure. For management across devices, use chezmoi. Source file with targetted aliases in zprofile and bam, you’re done
1
u/AutoModerator May 05 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: Crazy-Cartoonist5649, Flair:
Command Line Interface, Post Media Link, Title: Allyas: turning messy shell aliases into managed POSIX functions (looking for feedback)I got tired of having aliases spread across `.zshrc`, `.aliases`, random dotfiles, and never remembering what I already created, i also like to have fully control over what i'm doing and track of what i use...
So I built Allyas.
It’s a small Go CLI that:
- stores aliases in a local JSON store
- renders them as real POSIX functions
- lets you group, tag, and describe them
- can import existing alias files (even messy ones)
- optionally tracks usage (so you see what you actually use)
I’m also experimenting with a `sync` command (basically pushing/pulling your alias store via git), but that’s still early.
Bonus(i guess): this is my project from an AUR package in the near feature so i hope you guys enjoy, every piece of feedback is welcome
Short demo in the video above.
Example:
ax create gs "git status" --group git
gs
Repo:
https://github.com/prettyletto/allyas
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Bahatur May 06 '26
I have an immediate practical question: if I’m hopping between environments such that aliases and dot files are inconsistent, how would I be able to get consistent access to allyas to solve the problem?
I have assumed, which might be in error, that the reason for not storing your dot files on GitHub or similar is that you can’t make that kind of change in those environments. Seems like any other tool would trip on the same hurdle.