Files
ELYTerminal/assets/shell-integration/bash/elyterminal.bash
T
ZacharyZhang-NY dfaf378418
CI / platforms (windows-latest) (push) Failing after 8s
CI / macos (push) Failing after 8m47s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s
T05: shell integration for zsh, bash, fish, PowerShell; installed at start
2026-10-14 12:24:31 -04:00

19 lines
586 B
Bash

# ELYTerminal: load the usual startup files, report folder and title.
if [ -n "${ELY_BASH_LOGIN-}" ]; then
builtin unset ELY_BASH_LOGIN
[ -r /etc/profile ] && builtin source /etc/profile
for _ely_file in ~/.bash_profile ~/.bash_login ~/.profile; do
if [ -r "$_ely_file" ]; then
builtin source "$_ely_file"
break
fi
done
builtin unset _ely_file
else
[ -r ~/.bashrc ] && builtin source ~/.bashrc
fi
_ely_prompt() {
builtin printf '\e]7;file://%s\a\e]2;%s\a' "${PWD//\%/%25}" "${PWD##*/}"
}
PROMPT_COMMAND="_ely_prompt${PROMPT_COMMAND:+;$PROMPT_COMMAND}"