I need to run the command right after bash starts, and then stay in the session. I was expecting something like this to work bash && cd ~/Work , but apparently the second command will be executed in the first session, and not the one I'm running.
bash && cd ~/Work
I found this bash command in a new shell and remain in the new shell after running this command , but running bash --rcfile does not work for me, because I still need rcfile to load.
bash --rcfile
You can still use --rcfile , you just need to include the default rc file source in your command list:
--rcfile
bash --rcfile <(echo ". ~/.bashrc && cd ~/Work")
Source: https://habr.com/ru/post/1389998/More articles:Transferring the smallest amount of data by cable using WCF - c #Is operator overriding support in C # - overrideHTTP 504 when processing a downloaded ZIP image - pythonHow to use onClick event for Hyperlink using C # code? - c #How to write a "truly" private method in C #? - reflectionDataGridView Events - c #morphine query based on one field of a deeply nested object - javaTextMate: removing trailing spaces and saving - textmateInsertion Efficiency in a String - c ++JPA Embeddable class extension - jpaAll Articles