- Set an environment variable called
CMDER_ROOT
to your root Cmder folder (in my caseC:\Program Files (x86)\Cmder
). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script. - In your IntelliJ terminal settings, use
"cmd" /k ""%CMDER_ROOT%\vendor\init.bat""
as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{env, fs, path::{Path, PathBuf}}; | |
fn get_output_path() -> PathBuf { | |
let manifest_dir_string = env::var("CARGO_MANIFEST_DIR").unwrap(); | |
let build_type = env::var("PROFILE").unwrap(); | |
let path = Path::new(&manifest_dir_string) | |
.join("target") | |
.join(build_type); | |
return PathBuf::from(path); | |
} |