News for hackers. Stuff that matters.
Re:Why “alias” is my last resort for aliases by noahjk on Wednesday March 05, 2025 @01:45PM (#43270560)
Here's what I use in my .zshrc with VS Code:

    alias reload="source ~/.zshrc >/dev/null"
    alias zshconfig="code --wait --new-window ~/.zshrc && reload"
the --wait flag tells zsh that it's not done executing until the window/file is closed.
Re:Why “alias” is my last resort for aliases by latexr on Wednesday March 05, 2025 @01:55PM (#43270673)
On macOS, you can do that for any GUI editor by using the `open` command with the `-W` and `-n` flags. See `man open` for details.