Browse Source

bash: use command-not-found handler only if it exists

emacs-27
Leonid Plyushch 6 years ago
parent
commit
b45da7b8ba
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 8
      packages/bash/etc-bash.bashrc

8
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='\$ '

Loading…
Cancel
Save