Get plugin directory from outside vd #2954
-
|
Hi! It has been a long time, I hope you are all well!!!!! I was wondering if it was possible to get the My scenario is that I want to provide some commands which download and install a plugin file with zero effort. Something like:
TIA! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hello again! This command should do what you want. The idea is to use |
Beta Was this translation helpful? Give feedback.
-
|
@geekscrapy, your exact python command worked for me with the latest visidata develop; does it not work for you? |
Beta Was this translation helpful? Give feedback.
My command will get the default for the OS, rather than whatever is set in
.visidatarc. Plus yours actually runs a whoooole lot faster for some reason.I tweaked yours slightly, so we have a standard output format (if the user has it set already in the rc file), and made it OS agnostic
vd --save_filetype=tsv -b -P options-global 2>/dev/null | egrep '^visidata_dir\s+' | awk '{print $2}'Thanks again