mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-09 06:55:21 +02:00
command-not-found: add support for NixOS (#7701)
This commit is contained in:
@ -31,3 +31,10 @@ if type brew &> /dev/null; then
|
||||
eval "$(brew command-not-found-init)";
|
||||
fi
|
||||
fi
|
||||
|
||||
# NixOS command-not-found support
|
||||
if [ -x /run/current-system/sw/bin/command-not-found ]; then
|
||||
command_not_found_handler () {
|
||||
/run/current-system/sw/bin/command-not-found $@
|
||||
}
|
||||
fi
|
||||
|
Reference in New Issue
Block a user