From e8c7f07a3255415151babbb185112549ba48385a Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Thu, 18 Aug 2022 12:06:34 -0700 Subject: [PATCH] Check for xmodmap's existence before calling it --- src/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.bashrc b/src/.bashrc index a675777..c762c6b 100755 --- a/src/.bashrc +++ b/src/.bashrc @@ -10,7 +10,7 @@ if [ -f /etc/bashrc ]; then fi # source x mod map (if any) -[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap +[ -f ~/.Xmodmap ] && type xmodmap >/dev/null 2>/dev/null && xmodmap ~/.Xmodmap ### shell options