termux-packages/packages/bash/etc-bash.bashrc
Tom Yan 5d3ef9ba0c make PS1 dynamic and shell-specific
PS1 is not supposed to be an environment variable (i.e. will not
be listed in `printenv` but only in `set`). Its value should also
be shell-specific.

With this commit we can stop exporting a static PS1 as env var on
the java side.

The prompt would now indicate whether the current user is root.
2018-06-22 01:11:37 +02:00

6 lines
97 B
Plaintext

command_not_found_handle() {
@TERMUX_PREFIX@/libexec/termux/command-not-found "$1"
}
PS1='\$ '