You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the login startup file is located in $home/.rcrc. I would like to put it in $XDG_CONFIG_HOME/rc/init.rc, similar to how the Fish shell does it. Maybe it should check if an environment variable is set and source it, otherwise source $home/.rcrc. Or perhaps a command-line option.
The text was updated successfully, but these errors were encountered:
You can make it use any location you want by editing the source code of main.c and changing rcrc = concat(varlookup("home"), word("/.rcrc", NULL))->w; to rcrc = /path/to/my/.rcrc
then changing fd = rc_open(rcrc, rFrom); to fd = open(rcrc, O_CREAT, O_RDWR);
You may have to also add #include <fcntl.h> to access the open function
Then simply recompile and install with sudo make install, just be aware that you can't have rc running or set as login shell when you run the command else it will fail.
Also you may be able to just change rcrc = concat(varlookup("home"), word("/.rcrc", NULL))->w; to rcrc = concat(varlookup("XDG_CONFIG_HOME"), word("/rc/init.rc", NULL))->w; but I haven't tried that, the other solution works 100% guaranteed tho
Currently, the login startup file is located in
$home/.rcrc
. I would like to put it in$XDG_CONFIG_HOME/rc/init.rc
, similar to how the Fish shell does it. Maybe it should check if an environment variable is set and source it, otherwise source $home/.rcrc. Or perhaps a command-line option.The text was updated successfully, but these errors were encountered: