3 ms·
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" t
by noahjk 2y ago
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.
- latexr 2y agoOn 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.