From 3828a1ff720dd08823d91ef0fb237540f1754bea Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 27 Dec 2016 02:29:18 +1300 Subject: Tell ShellCheck to ignore an error ret actually is assigned, just not in any place ShellCheck could reasonably be expected to find --- zsh/zshrc.d/prompt.zsh | 1 + 1 file changed, 1 insertion(+) (limited to 'zsh') diff --git a/zsh/zshrc.d/prompt.zsh b/zsh/zshrc.d/prompt.zsh index 27db61cb..898031ea 100644 --- a/zsh/zshrc.d/prompt.zsh +++ b/zsh/zshrc.d/prompt.zsh @@ -178,6 +178,7 @@ prompt() { # Show return status of previous command in angle brackets, if not zero ret) + # shellcheck disable=SC2154 ((ret)) && printf '<%u>' "$ret" ;; -- cgit v1.2.3