T05: shell integration for zsh, bash, fish, PowerShell; installed at start
CI / platforms (windows-latest) (push) Failing after 8s
CI / macos (push) Failing after 8m47s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

This commit is contained in:
ZacharyZhang-NY committed 2026-10-14 12:24:31 -04:00
1 parent 8c6f242bf1
commit dfaf378418
12 files changed
+375 -4

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# ELYTerminal: restore ZDOTDIR, load the user's .zshenv, report folder and title.
if [[ -n "${ELY_ZSH_ZDOTDIR+set}" ]]; then
ZDOTDIR=$ELY_ZSH_ZDOTDIR
builtin unset ELY_ZSH_ZDOTDIR
else
builtin unset ZDOTDIR
fi
[[ -r "${ZDOTDIR:-$HOME}/.zshenv" ]] && builtin source "${ZDOTDIR:-$HOME}/.zshenv"
if [[ -o interactive ]]; then
_ely_precmd() {
builtin printf '\e]7;file://%s\a\e]2;%s\a' "${PWD//\%/%25}" "${${PWD:t}:-/}"
}
_ely_preexec() {
builtin printf '\e]2;%s\a' "${1//[[:cntrl:]]/}"
}
builtin autoload -Uz add-zsh-hook
add-zsh-hook precmd _ely_precmd
add-zsh-hook preexec _ely_preexec
fi