termux-packages/packages/zsh/etc-zshrc
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

7 lines
106 B
Plaintext

command_not_found_handler() {
@TERMUX_PREFIX@/libexec/termux/command-not-found $1
return 0
}
PS1='%# '