I have a small distro (not busybox) that uses ash, and I am not sure how the dot file structure is handled. .ashrc doesnt seem to be picked up nor I see a .bash_profile analog. Is there a default convention for shell startup file?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
This is covered in the Invocation section of the man page.
~/.profile
is read for login shells. For non-login interactive shells to read a dotfile at startup, you need to in your environment (ie. set by.profile
) specify the name of a file to read inENV
. Thus, the following will ensure thatPS1
is updated in every interactive shell created after the next login session: