Browse Source

add zsh check to profile fix for vscode last word key binding

Kyle P Davis 6 years ago
parent
commit
9e2a2eef94
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .profile

+ 3 - 1
.profile

@@ -154,7 +154,9 @@ fi
 if [ "$TERM_PROGRAM" = "vscode" ]; then
 
 	# patch to restore some of the option as meta escape key in VS Code on Mac
-	bindkey "≥" insert-last-word
+	if [ "$ZSH_VERSION" ]; then
+		bindkey "≥" insert-last-word
+	fi
 
 	# detect if in a fully resolved HOME path and cd back to the shorter version
 	if [ "$PWD" != "$HOME" ]; then