News for hackers. Stuff that matters.
Re:Why “alias” is my last resort for aliases by tasn on Wednesday March 05, 2025 @08:51AM (#43266348)
I came here to say the same thing. I'm also not convinced about the instant reload aspect. You can always just define your aliases in a different file and source it when updating aliases (how often does that happen anyway?), source your .zshrc, or just open a new terminal window.
Re:Why “alias” is my last resort for aliases by chrisfinazzo on Wednesday March 05, 2025 @10:48AM (#43268158)
Sourcing .zshrc works reasonably well. I have the following at the end of setup.sh -- which creates symlinks and sets up other configurations.

makeLinks does most of the work, then sets Homebrew's zsh as the default shell -- this currently runs in bash, so it probably will need to be updated at some point -- and everything gets reloaded.

    makeLinks && chsh -s /usr/local/bin/zsh
  
    exec $SHELL && brew doctor
Re:Why “alias” is my last resort for aliases by alkh on Wednesday March 05, 2025 @10:32AM (#43267886)
I have an alias reload="exec zsh" for fast reloading. Admittedly, this does wreck up everything set up locally but I doubt you will be modifying ~/.[zsh|bash]rc file often
Re:Why “alias” is my last resort for aliases by chime on Wednesday March 05, 2025 @09:01AM (#43266479)
I have alias s='source ~/.zshrc'.