From 2fd97ce6cca2ea40b7de526475b5b446bb624696 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 17 Aug 2020 11:01:40 +0000 Subject: modules/zsh: mark variable local There's no reason for this to be global. Outside of this function it's the same as $? anyway. --- modules/shell/zsh/zshrc.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/shell/zsh/zshrc.nix b/modules/shell/zsh/zshrc.nix index 3cf9e2fe76a4..869e33e24e99 100644 --- a/modules/shell/zsh/zshrc.nix +++ b/modules/shell/zsh/zshrc.nix @@ -207,7 +207,7 @@ preexec() { } precmd() { - ex="$?" + local ex="$?" if [[ -n "$show_exit" && "$ex" -ne 0 ]] then echo -e "\r\e[33m[exit $ex]\e[0m" fi -- cgit 1.4.1