We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handles what happens when a command cannot be found.
Args: command_name [command_arg1 command_arg2 ...]
command_name [command_arg1 command_arg2 ...]
Exit status: 127
The text was updated successfully, but these errors were encountered:
Prototype:
function command_not_found_handle() { { echo -e "$BRed"Command not found: "$NC$BYellow$1$NC" shift if [[ $# > 0 ]]; then echo "$#" args: "$(join_by ', ' "${@@Q}")" fi echo -e Try "$BGreen"'`displayPath`'"$NC" to see the path } >&2 return 127 } function join_by { local d=$1; shift; echo -n "$1"; shift; printf "%s" "${@/#/$d}"; echo; }
join_by from here
Sorry, something went wrong.
Consider conditionally defining it (so as not to override):
[[ "$(type -t command_not_found_handle)" = function ]] || # def function
0299230
benknoble
No branches or pull requests
Handles what happens when a command cannot be found.
Args:
command_name [command_arg1 command_arg2 ...]
Exit status: 127
The text was updated successfully, but these errors were encountered: