diff --git a/packages/bash/etc-bash.bashrc b/packages/bash/etc-bash.bashrc index e5422eb89..a36948a25 100644 --- a/packages/bash/etc-bash.bashrc +++ b/packages/bash/etc-bash.bashrc @@ -1,5 +1,7 @@ -command_not_found_handle() { - @TERMUX_PREFIX@/libexec/termux/command-not-found "$1" -} +if [ -x @TERMUX_PREFIX@/libexec/termux/command-not-found ]; then + command_not_found_handle() { + @TERMUX_PREFIX@/libexec/termux/command-not-found "$1" + } +fi PS1='\$ '