这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/bash/etc-bash.bashrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
command_not_found_handle() {
@TERMUX_PREFIX@/libexec/termux/command-not-found "$1"
}

PS1='\$ '
4 changes: 2 additions & 2 deletions packages/openssh/session.c.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/session.c.orig b/session.c
index 58826db..c251ee9 100644
index 58826db..890e452 100644
--- a/session.c.orig
+++ b/session.c
@@ -199,7 +199,7 @@ auth_input_request_forwarding(struct ssh *ssh, struct passwd * pw)
Expand Down Expand Up @@ -36,7 +36,7 @@ index 58826db..c251ee9 100644
child_set_env(&env, &envsize, "TZ", getenv("TZ"));

+#ifdef __ANDROID__
+ char const* envs_to_keep[] = {"LD_LIBRARY_PATH", "PATH", "ANDROID_ROOT", "ANDROID_DATA", "EXTERNAL_STORAGE", "LANG", "PREFIX", "TMPDIR", "PS1"};
+ char const* envs_to_keep[] = {"LD_LIBRARY_PATH", "PATH", "ANDROID_ROOT", "ANDROID_DATA", "EXTERNAL_STORAGE", "LANG", "PREFIX", "TMPDIR"};
+ for (i = 0; i < (sizeof(envs_to_keep) / sizeof(envs_to_keep[0])); i++) {
+ char const* env_to_keep_name = envs_to_keep[i];
+ char const* env_to_keep_value = getenv(env_to_keep_name);
Expand Down
2 changes: 2 additions & 0 deletions packages/zsh/etc-zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ command_not_found_handler() {
@TERMUX_PREFIX@/libexec/termux/command-not-found $1
return 0
}

PS1='%# '