Closed NikhilBayyavarapu closed 1 year ago
If you're using Fig (i.e. you're at Google) bash-preexec is likely already installed in your system by default. The issue might have been that you were installing it a second time and overwriting the existing script and functions. Better to use the function arrays in any case.
Using Pop OS, bash version 5.1.16(1)-release (x86_64-pc-linux-gnu)
1) Cloned the repo. 2) Sourced the bash-preexec.sh file. 3) Defined the preexec() and precmd() functions.
precmd() is working where as preexec() doesn't work. Even tried enabling the subshell support variable.
Did not source the contents of bash-preexec.sh file into my .bashrc as I just wanted to test this out.
Edit : Working fine now. Fig was causing the issue. Uninstalled fig and preexec() is now working fine. Thanks.