Browse Source

fix: minor quoting shellcheck issue VS Code terminal tweaks in profile

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

+ 1 - 1
.profile

@@ -180,7 +180,7 @@ if [ "$TERM_PROGRAM" = "vscode" ]; then
 		ABS_HOME="$(cd "$HOME" && pwd -P)"
 		ABS_HOME="$(cd "$HOME" && pwd -P)"
 		if [ "$ABS_HOME" != "$HOME" ]; then
 		if [ "$ABS_HOME" != "$HOME" ]; then
 			if [[ "$PWD" =~ $ABS_HOME* ]]; then
 			if [[ "$PWD" =~ $ABS_HOME* ]]; then
-				cd "$HOME${PWD##$ABS_HOME}" || :
+				cd "$HOME${PWD##"$ABS_HOME"}" || :
 			fi
 			fi
 		fi
 		fi
 	fi
 	fi