fix: drop bashrc, reduce sleep to 0.1s

This commit is contained in:
nedalaltiti 2026-04-04 04:56:39 +03:00
parent 779024c794
commit 37847d5505

View file

@ -77,9 +77,12 @@ class TerminalSession:
self.pane = self.window.active_pane
_initial_window.kill()
# Source proxy config so sub-agent terminals inherit Caido proxy + CA certs
self.pane.send_keys('source /etc/profile.d/proxy.sh 2>/dev/null; source ~/.bashrc 2>/dev/null; true')
time.sleep(0.3)
# Inherit Caido proxy config (small file, completes instantly)
self.pane.send_keys(
'source /etc/profile.d/proxy.sh 2>/dev/null; '
'export HTTP_PROXY HTTPS_PROXY REQUESTS_CA_BUNDLE; true'
)
time.sleep(0.1)
self.pane.send_keys(f'export PROMPT_COMMAND=\'export PS1="{self.PS1}"\'; export PS2=""')
time.sleep(0.1)
self._clear_screen()