[chimerax-users] overwrite session aliases from the startup options

Elaine Meng meng at cgl.ucsf.edu
Fri Jan 20 14:00:46 PST 2023


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




More information about the ChimeraX-users mailing list