dimkr / loksh

A Linux port of OpenBSD's ksh
117 stars 6 forks source link

Change .kshrc location at compile time #33

Closed toniz4 closed 3 years ago

toniz4 commented 3 years ago

There is any way to easily change the config file location at compile time? I prefer having my configs at ~/.config/ksh.

dimkr commented 3 years ago

Hi @toniz4! loksh behaves the same as upstream ksh, and extra features won't be added.

toniz4 commented 3 years ago

So there is any way i can change a declare or a variable before compiling it to search for the kshrc in another location? To be clear i just want to change it locally.

toniz4 commented 3 years ago

I should have RTFM. I can set the location of the .kshrc file with ENV at ~/.profile.

ENV="$XDG_CONFIG_HOME"/ksh/kshrc