0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-07-16 08:54:45 +00:00
Files
termux-packages/packages/zsh/etc-zshrc
Juhan 4a9898d642 fix(main/zsh): check that command-not-found is installed
- and stop making it a hard dependency
2025-07-06 11:21:11 +02:00

14 lines
413 B
Bash

emulate sh -c '. @TERMUX_PREFIX@/etc/profile'
# Handles nonexistent commands.
# If user has entered command which invokes non-available
# utility, command-not-found will give a package suggestions.
if [ -x "@TERMUX_PREFIX@/libexec/termux/command-not-found" ]; then
command_not_found_handler() {
"@TERMUX_PREFIX@"/libexec/termux/command-not-found "$1"
}
fi
PS1='%# '
# vim: set noet ft=zsh tw=4 sw=4 ff=unix