This is what worked for me for a somewhat similar scenario:
It may help to add an echo with a custom message in your .bashrc file to confirm if indeed this file is being read
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.