From 7de57d2a6734f3ebc555451435fd59ae2093c53a Mon Sep 17 00:00:00 2001 From: steveokard Date: Tue, 29 Aug 2017 17:59:51 -0400 Subject: [PATCH] fixed problem during ssh --- .zshrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 58b0726..1a7cda6 100644 --- a/.zshrc +++ b/.zshrc @@ -108,6 +108,8 @@ setopt mark_dirs setopt path_dirs #Set caps to escape when tapped and ctrl when held -setxkbmap -option 'caps:ctrl_modifier' -xcape -e 'Caps_Lock=Escape' - +if [[ -n "$SSH_CLIENT" ]] + then + setxkbmap -option 'caps:ctrl_modifier' + xcape -e 'Caps_Lock=Escape' + fi