thomazmoura / dev-environment

Dev Environment for developing with NeoVim
MIT License
4 stars 0 forks source link

📦💻 - Remove bash-to-powershell workaround (set PowerShell as default on tmux) #33

Closed thomazmoura closed 1 year ago

thomazmoura commented 2 years ago

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.

thomazmoura commented 1 year ago

I didn't make a separate branch for it, but changes for the #36 actually fixed it.