[chimerax-users] overwrite session aliases from the startup options
Elaine Meng
meng at cgl.ucsf.edu
Fri Jan 20 14:41:18 PST 2023
Great! My preferences simply have the open command, but I haven't had the need to re-run it like you do. What you describe sounds right to me... and if not, you know where to complain! :-)
Elaine
> On Jan 20, 2023, at 2:14 PM, Helge Paternoga via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>
> Hi Elaine,
>
> That is a nice suggestion! So something like:
>
> alias startup open <pathtofile>
> startup
>
> In the preferences would still work as before, right? And it has the added benefit of being able to run "startup" in older sessions.
>
> I think thats solves my issue!
>
> Best,
>
> Helge
>
>
> Am 20.01.23 um 23:00 schrieb Elaine Meng:
>> To clarify: put startup commands in a cxc file and then make an alias to open that cxc file. I'd forgotten that the preferences allow listing the commands directly instead of referencing a file, since my approach was to keep them in a file and then just put the "open" command there. Admittedly, that is not as portable/convenient for switching amongst multiple different computers.
>>
>> Elaine
>>
>>> On Jan 20, 2023, at 1:57 PM, Elaine Meng via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>>>
>>> Hi Helge,
>>> You could make an alias to (re)open/run the startup script. Still would be an additional step but sounds shorter than pasting all of the aliases within it into the command line.
>>> Best,
>>> Elaine
>>> -----
>>> Elaine C. Meng, Ph.D.
>>> UCSF Chimera(X) team
>>> Department of Pharmaceutical Chemistry
>>> University of California, San Francisco
>>>
>>>
>>>> On Jan 20, 2023, at 1:47 PM, Helge Paternoga via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>>>>
>>>> Hi Elaine,
>>>>
>>>> Thanks for the tip with "alias delete all", I had not considered that one.
>>>>
>>>> My solution so far was to open the startup screen and copy all new aliases, then paste them in the command line and hit enter which overwrites everything with the newest ones. So a toggle option to "re-run startup script upon session loading" or something similar could alleviate the issue.
>>>>
>>>> Best,
>>>>
>>>> Helge
>>>>
>>>> Am 18.01.23 um 21:00 schrieb chimerax-users-request at cgl.ucsf.edu:
>>>>> Dear Helge,
>>>>> I don't have an elegant solution, but faced with this problem I would
>>>>>
>>>>> (1) open old session
>>>>>
>>>>> (2) use "alias delete" to get rid of the old versions of the aliases (or "alias delete all" if you are OK with getting rid of all of them)
>>>>> <https://rbvi.ucsf.edu/chimerax/docs/user/commands/alias.html>
>>>>>
>>>>> (3) re-save session
>>>>>
>>>>> I understand that it is a pain to do this if you have a large repertoire of saved sessions, however.
>>>>> I hope this helps,
>>>>> Elaine
>>>
>>> _______________________________________________
>>> ChimeraX-users mailing list
>>> ChimeraX-users at cgl.ucsf.edu
>>> Manage subscription:
>>> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
More information about the ChimeraX-users
mailing list