I needed to keep powershell as the default shell on tmux whenever a user terminal was open, but wanted to keep bash as the default system-wise so that whenever a terminal tool was called (such as fzf on neovim) it would call it from bash instead of PowerShell (since bash is way faster to open).
The solution I found at the time as to change the .bashrc to actually open PowerShell and call exit afterwards - that way whenever a user terminal is open, PowerShell is called and keeps the bash session until it's closed (which in turn calls the exit on .bashrc and closes bash as well) and whenever bash is called without sourcing .bashrc (like when it's used by tools) it will not actually start powershell, making it way faster.
It's a really hacky solution I would like to remove from the code. So I'll test if by keeping it as default only on tmux and removing that hack I manage to keep it as default on new terminal windows (at least inside tmux) and not make tui tools slower.
I needed to keep powershell as the default shell on tmux whenever a user terminal was open, but wanted to keep bash as the default system-wise so that whenever a terminal tool was called (such as fzf on neovim) it would call it from bash instead of PowerShell (since bash is way faster to open).
The solution I found at the time as to change the .bashrc to actually open PowerShell and call exit afterwards - that way whenever a user terminal is open, PowerShell is called and keeps the bash session until it's closed (which in turn calls the exit on .bashrc and closes bash as well) and whenever bash is called without sourcing .bashrc (like when it's used by tools) it will not actually start powershell, making it way faster.
It's a really hacky solution I would like to remove from the code. So I'll test if by keeping it as default only on tmux and removing that hack I manage to keep it as default on new terminal windows (at least inside tmux) and not make tui tools slower.