Open alexiswl opened 1 month ago
If running icav2 cli plugins inside a bash script, one needs to resource ~/.icav2-cli-plugins/source.sh as functions aren't inherited by subshells.
If the main shell is zsh, then $SHELL will remain as /usr/bin/zsh, not /usr/bin/bash inside the shell script.
Instead use the /proc/$$/exe symlink to determine the executable
If running icav2 cli plugins inside a bash script, one needs to resource ~/.icav2-cli-plugins/source.sh as functions aren't inherited by subshells.
If the main shell is zsh, then $SHELL will remain as /usr/bin/zsh, not /usr/bin/bash inside the shell script.
Instead use the /proc/$$/exe symlink to determine the executable