Where should I put personal shell configurations when using dash?
Asked
Active
Viewed 5,382 times
1 Answers
4
There is no default file, you should set its name in the ENV
environment variable. So add to your .profile
the line
ENV=$HOME/.shinit; export ENV
so that .shinit
becomes the equivalent of .bashrc
.
But take into account that dash
is not suitable for interactive use, given that do not provide any line editing capabilities (this can be solved: see How to have editing capabilities in command line apps that do not provide them).
set -o vi
orset -o emacs
for "interactive" usage. – dylnmc Aug 19 '21 at 19:12