Sep. 22nd, 2021

jbanana: Badly drawn banana (Default)
I installed a VM with Alpine Linux. It uses BusyBox, including for the default shell, ash. How do I set an alias?

I tried startup scripts of various names. No joy. They were ignored. The internet suggested that if I put the name of the script in an environment variable called ENV, the named script would be run at shell startup. But where do I set *that*?

After poking around, all scripts in /etc/profile.d get run, so I added /etc/profile.d/setashrc.sh which just contains
export ENV=$HOME/.ashrc

Now I can set an alias in ~/.ashrc but I'm wondering why there isn't some sort of default?

Anyway, this post is mostly in case I ever need to do this again.

May 2025

M T W T F S S
   1234
5678 91011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 20th, 2025 09:06 am
Powered by Dreamwidth Studios