diff options
author | Soispha <soispha@vhack.eu> | 2024-02-28 21:11:19 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-02-28 21:13:50 +0100 |
commit | 8681fca560ac8129b1d74e4c1ce6fd9d48b2c7ba (patch) | |
tree | e7d609b79859ac3dfe8c6124ba55c9e176f57fdd /hm | |
parent | fix(hm/conf/zsh/command_not_found.sh): Correctly count found attrs (diff) | |
download | nixos-config-8681fca560ac8129b1d74e4c1ce6fd9d48b2c7ba.zip |
fix(hm/conf/zsh/command_not_found.sh): Output a status message for shell
Diffstat (limited to 'hm')
-rw-r--r-- | hm/soispha/conf/zsh/config/command_not_found.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hm/soispha/conf/zsh/config/command_not_found.sh b/hm/soispha/conf/zsh/config/command_not_found.sh index f3339451..20e3aa0e 100644 --- a/hm/soispha/conf/zsh/config/command_not_found.sh +++ b/hm/soispha/conf/zsh/config/command_not_found.sh @@ -29,6 +29,10 @@ command_not_found_handle() { # These will not return 127 if they worked correctly. + >&2 cat <<EOF +The program '$cmd' is currently not installed. A shell will be opened +with it. +EOF if nix build "$toplevel#$attrs" --no-link; then nix shell "$toplevel#$attrs" return $? |