viconfig: implement function for writing a shell profile