termux-packages/packages/nushell/user_home_dir.patch
2022-05-05 11:54:06 +05:30

16 lines
388 B
Diff

--- a/crates/nu-path/src/tilde.rs
+++ b/crates/nu-path/src/tilde.rs
@@ -53,6 +53,12 @@
// Returns home dir of user.
}
+#[cfg(target_os = "android")]
+#[allow(unused)]
+fn user_home_dir(username: &str) -> PathBuf {
+ PathBuf::from(String::from("@TERMUX_HOME@"))
+}
+
#[cfg(target_os = "macos")]
fn user_home_dir(username: &str) -> PathBuf {
match dirs_next::home_dir() {