We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7954d02 commit 7615a6cCopy full SHA for 7615a6c
1 file changed
src/cortex-cli/src/plugin_cmd.rs
@@ -698,8 +698,9 @@ struct PluginInfo {
698
699
/// Get the plugins directory.
700
fn get_plugins_dir() -> PathBuf {
701
- dirs::home_dir()
702
- .map(|h| h.join(".cortex").join("plugins"))
+ cortex_common::get_cortex_home()
+ .map(|h| h.join("plugins"))
703
+ .or_else(|| dirs::home_dir().map(|h| h.join(".cortex").join("plugins")))
704
.unwrap_or_else(|| PathBuf::from(".cortex/plugins"))
705
}
706
0 commit comments