mirror of
https://github.com/usestrix/strix.git
synced 2026-09-12 23:01:05 +00:00
fix: drop bashrc, reduce sleep to 0.1s
This commit is contained in:
parent
779024c794
commit
37847d5505
1 changed files with 6 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue