evcxr / evcxr

Other
5.59k stars 216 forks source link

How to add :cache 500 to my ~/.config/evcxr/init.evcxr #362

Open aksjfds opened 9 months ago

aksjfds commented 9 months ago

I didn't find init.evcxr in my pc, should i create this file and then add :cache 500 to it?

davidlattimore commented 9 months ago

Yep, evcxr doesn't automatically create it for you - although that's an interesting idea that I hadn't thought of

aksjfds commented 9 months ago

Yep, evcxr doesn't automatically create it for you - although that's an interesting idea that I hadn't thought of

how can I use :cache?

davidlattimore commented 9 months ago

You should just need to create a file ~/.config/evcxr/init.evcxr containing :cache 500. That's assuming you're on Linux. If you're on a different platform, the filename will be different. If you're not sure what the path to the config file should be for your platform, you can run (from evcxr):

:dep dirs
dirs::config_dir().unwrap().join("evcxr").join("init.evcxr")