This website requires JavaScript.
Explore
Help
Register
Sign In
sergiotarxz
/
termux-packages
Watch
1
Star
0
Fork
0
You've already forked termux-packages
Code
Issues
Pull Requests
Releases
Wiki
Activity
49dd98a346
termux-packages
/
packages
/
zsh
/
etc-zshrc
5 lines
95 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Enable command-not-found for bash and zsh interactive shells
2015-07-14 01:41:08 +02:00
command_not_found_handler() {
@TERMUX_PREFIX@/libexec/termux/command-not-found $1
zsh: Return 0 from command_not_found_handler "The function should return status zero if it successfully handled the command, or non-zero status if it failed. In the latter case the standard handling is applied: ‘command not found’ is printed to standard error and the shell exits with status 127." - http://zsh.sourceforge.net/Doc/Release/Command-Execution.html Needed after changes in https://github.com/termux/termux-packages/pull/566 where the command-not-found program no longer exists itself with 0.
2016-11-28 13:28:06 +01:00
return 0
Enable command-not-found for bash and zsh interactive shells
2015-07-14 01:41:08 +02:00
}
Reference in New Issue
Copy Permalink