7 ms·
Show HN: Kaldo – Cross Shell Aliases
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!
- microflash 2y agoThis is nice. Would love support for nushell as well.
- cpendery 2y agoCreated an issue for you to follow https://github.com/cpendery/kaldo/issues/2 https://github.com/cpendery/kaldo/issues/2
- alanbernstein 2y agoJust curious, why do you find yourself switching shells often?
- ktm5j 2y agoI 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.
- cpendery 2y agoThat's smart, I switch between powershell & git-bash so this helps since they don't the same way of defining aliases
- cpendery 2y agoI 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
- jevyjevjevs 2y agoNeat! 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#opt-home.shellAliases https://nix-community.github.io/home-manager/options.xhtml#o...
- ctippett 2y agoNot 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/ https://docs.atuin.sh/guide/dotfiles/
- cpendery 2y agoOh 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