From 7a8cf750bd02894d06dc07d85a6aab8d22921b60 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 7 Jun 2019 20:07:32 +0100 Subject: [PATCH] Don't apply Begin/End key fix on macOS --- zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index f2bea2b..ccc633d 100644 --- a/zshrc +++ b/zshrc @@ -130,8 +130,10 @@ zle -N edit-command-line bindkey -M vicmd '^V' edit-command-line # Enable HOME and END keys -bindkey $key[Home] beginning-of-line -bindkey $key[End] end-of-line +if [[ `uname` = Linux ]]; then + bindkey $key[Home] beginning-of-line + bindkey $key[End] end-of-line +fi # Get the shells parent process name. ppid_name() { echo $(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=) }