Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Kaldo – Cross Shell Aliases (github.com/cpendery)
25 points by cpendery 35 days ago | hide | past | favorite | 9 comments
I made this so that I don't have to maintain my aliases across my $profile, .bashrc, and .zshrc when I swap shells. Let me know what you think about it!



Not to detract from OP's project, but I only noticed today that Atuin[1] also now has a feature that synchronises aliases (in addition to your shell history). I self-host an Atuin server and it's been super helpful being able to ctrl-r and find a command I ran on another machine.

Does this project facilitate synchronising aliases across devices as well as across shells or is the idea you'd use something like Syncthing to achieve the former?

[1] https://docs.atuin.sh/guide/dotfiles/


Oh that's super cool, I didn't know atuin supported aliases. This project doesn't support syncing across devices (I was planning on adding it if there was interest), but it seems like atuin is probably a better fit for users since it's already e2e and easily self-hostable


Neat! As an alternative, `home manager (nix)` has an abstraction for defining shell alias[^1] regardless of which shell you use. The main requirement is that home manager also manages your shell for you. [^1]: https://nix-community.github.io/home-manager/options.xhtml#o...


Just curious, why do you find yourself switching shells often?


I almost always use zsh, but occasionally have a reason to switch back to bash. It's so infrequent that I can't even think of a good example.. but I put all of my aliases and functions in ~/.profile and make sure that my bashrc and zshrc explicitly source so I have them all in either shell.


That's smart, I switch between powershell & git-bash so this helps since they don't the same way of defining aliases


I maintain inshellisense & I've been contributing some features to VSCode's terminal which both require in switching a lot between shells for testing. I kept trying to run my git specific aliases in other shells and decided to make this to unify them


This is nice. Would love support for nushell as well.


Created an issue for you to follow https://github.com/cpendery/kaldo/issues/2




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: