mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-11-28 21:20:25 +08:00
* 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)
11 lines
No EOL
369 B
Bash
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 |