From 013637e7bf66851916b59718c3c30147eec4231a Mon Sep 17 00:00:00 2001
From: Jens Nolte <git@queezle.net>
Date: Wed, 14 Apr 2021 17:43:10 +0200
Subject: [PATCH] Add alias `err` to show shell error code information

---
 layers/zsh.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/layers/zsh.nix b/layers/zsh.nix
index db8fc16..6b40d6d 100644
--- a/layers/zsh.nix
+++ b/layers/zsh.nix
@@ -49,6 +49,8 @@ in
     copy = "xclip -selection c -i";
     paste = "xclip -selection c -o";
 
+    err = "${pkgs.moreutils}/bin/errno $?";
+
     # Start tmux in a transient scope (a PAM session would be better but this works)
     tmux-new = "systemd-run --scope --user tmux";
 
-- 
GitLab