tabtab
tabtab copied to clipboard
Bashrc modification can cause warnings
Hello,
I've used electron-forge on Linux, which uses tabtab, and I ran into a small bug that seems to be cause by tabtab : the program adds something to ~/.bashrc that looks like
# tabtab source for electron-forge package
# uninstall by removing these lines or running `tabtab uninstall electron-forge`
[ -f /home/user/<etc-etc>/node_modules/tabtab/.completions/electron-forge.bash ] && . /home/user/<etc-etc>/node_modules/tabtab/.completions/electron-forge.bash
where the "etc-etc" is the path I installed it to. If that path contains spaces, those spaces are not escaped (" " is written instead of "\ ") which triggers an error ("bash [ too many arguments" every time you open a terminal) and means the command that is added is not run properly. The fix is (hopefully) easy; the spaces need to be escaped. Thanks!
Hi @hlabrand Thanks for letting me know. The fix is indeed (hopefully) easy. I'll take a look asap.
I've just had exactly the same issue. Fortunately, it's fixed by changing manually the empty spaces in the path for "\ " as @hlabrand had explained. Thanks for pointing to that solution! Never imagined that I was having that problem because I'd been playing around with electron-forge lately.