Show HN: Kaldo – Cross Shell Aliases

(github.com)

25 points | by cpendery 11 days ago

4 comments

  • ctippett 9 days ago
    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/

    • cpendery 9 days ago
      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
  • jevyjevjevs 9 days ago
    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...
  • alanbernstein 9 days ago
    Just curious, why do you find yourself switching shells often?
    • ktm5j 9 days ago
      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.
      • cpendery 9 days ago
        That's smart, I switch between powershell & git-bash so this helps since they don't the same way of defining aliases
    • cpendery 9 days ago
      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
  • microflash 10 days ago
    This is nice. Would love support for nushell as well.