Browse Source

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

Kyle P Davis 6 năm trước cách đây
mục cha
commit
9e2a2eef94
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      .profile

+ 3 - 1
.profile

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