Warp
Warp copied to clipboard
Can't start bash if .bashrc contains alias with control characters
Discord username (optional)
No response
Describe the bug
I have a bash alias with a control character (^O) in it. This causes Warp to never finish starting up. A message at the top of the Warp window says "Seems like your shell is taking a while to start..." but it never finishes
To reproduce
- Include this alias in .bashrc
alias vimv=$'vim "+:normal! \x0f\x0f"'
- Start Warp
Expected behavior
Warp should start up even if bash aliases contain control characters
Screenshots
Operating system
Linux
Operating system and version
Linux Mint 21.2
Shell Version
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Current Warp version
v0.2024.02.20.08.01.stable_02
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
No response
Does this block you from using Warp daily?
No
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
Yes, this I confirmed this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
Howdy, you can disable that alias just for Warp with the following conditional. That should help with the bootstrap script not loading.
# Bash and Zsh
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
# > What you want to disable here <
fi
afaik, we don't support control sequences in aliases, there might be a request for that on github, but I'm not aware of one of top of my head.