about summary refs log tree commit diff stats
path: root/hm/soispha/conf/zsh/config
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-28 21:11:19 +0100
committerSoispha <soispha@vhack.eu>2024-02-28 21:13:50 +0100
commit8681fca560ac8129b1d74e4c1ce6fd9d48b2c7ba (patch)
treee7d609b79859ac3dfe8c6124ba55c9e176f57fdd /hm/soispha/conf/zsh/config
parentfix(hm/conf/zsh/command_not_found.sh): Correctly count found attrs (diff)
downloadnixos-config-8681fca560ac8129b1d74e4c1ce6fd9d48b2c7ba.zip
fix(hm/conf/zsh/command_not_found.sh): Output a status message for shell
Diffstat (limited to 'hm/soispha/conf/zsh/config')
-rw-r--r--hm/soispha/conf/zsh/config/command_not_found.sh4
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 $?