@@ -83,7 +83,7 @@ impl DirectoryShare {
8383 if parts.len() < 2 || parts.len() > 3 {
8484 return Err(format!("Invalid mount spec: {spec}").into());
8585 }
86− let host = PathBuf::from(parts[0]);
86+ let host = expand_tilde_path(parts[0]);
8787 let guest = PathBuf::from(parts[1]);
8888 let read_only = if parts.len() == 3 {
8989 match parts[2] {
@@ -117,6 +117,19 @@ impl DirectoryShare {
117117 }
118118}
119119
120+fn expand_tilde_path(value: &str) -> PathBuf {
121+ if let Some(stripped) = value.strip_prefix("~/") {
122+ if let Ok(home) = env::var("HOME") {
123+ return PathBuf::from(home).join(stripped);
124+ }
125+ } else if value == "~" {
126+ if let Ok(home) = env::var("HOME") {
127+ return PathBuf::from(home);
128+ }
129+ }
130+ PathBuf::from(value)
131+}
132+
120133pub struct VmArg {
121134 pub cpu_count: usize,
122135 pub ram_bytes: u64,
@@ -206,17 +219,6 @@ where
206219 );
207220
208221 directory_shares.push(mise_directory_share);
209−
210− // Add default shares, if they exist
211− for share in [
212− DirectoryShare::new(home.join(".codex"), "/usr/local/codex".into(), false),
213− DirectoryShare::new(home.join(".claude"), "/usr/local/claude".into(), false),
214− ]
215− .into_iter()
216− .flatten()
217− {
218− directory_shares.push(share)
219− }
220222 }
221223
222224 directory_shares.extend(extra_directory_shares);