waveterm/pkg/util/shellutil/shellintegration/zsh_zshenv.sh
Mike Sawka 6a173a6227
working on more terminal context (#2444)
* add automatic OSC 7 support to bash and zsh
* add new wave OSC 16162 (planck length) to get up-to-date shell
information into blockrtinfo. currently implemented only for zsh. bash
will not support as rich of data as zsh, but we'll be able to do some.
* new rtinfo will be used to provide better context for AI in the
future, and to make sure AI is running safe commands.
* added a small local machine description to tab context (so AI knows
we're running on MacOS, Linux, or Windows)
2025-10-17 12:19:40 -07:00

11 lines
No EOL
369 B
Bash

# Store the initial ZDOTDIR value
WAVETERM_ZDOTDIR="$ZDOTDIR"
# Source the original zshenv
[ -f ~/.zshenv ] && source ~/.zshenv
# Detect if ZDOTDIR has changed
if [ "$ZDOTDIR" != "$WAVETERM_ZDOTDIR" ]; then
# If changed, manually source your custom zshrc from the original WAVETERM_ZDOTDIR
[ -f "$WAVETERM_ZDOTDIR/.zshrc" ] && source "$WAVETERM_ZDOTDIR/.zshrc"
fi