Add cfg for mkdir command to separate between unix/windows
@@ -129,12 +129,20 @@ pub fn builtin_verbs() -> Vec<Verb> {
#[cfg(feature="clipboard")]
internal(input_paste)
.with_key(key!(ctrl-v)),
+ #[cfg(unix)]
external(
"mkdir {subpath}",
"mkdir -p {subpath:path-from-directory}",
StayInBroot,
)
.with_shortcut("md"),
+ #[cfg(windows)]
+ external(
+ "mkdir {subpath}",
+ "cmd /c mkdir {subpath:path-from-directory}",
+ StayInBroot,
+ )
+ .with_shortcut("md"),
external(
"move {newpath}",
"mv {file} {newpath:path-from-parent}",
