Browse Source

Merge pull request #53 from jonasmalacofilho/fix-48

Fix the 256 palette script failed login issue
Pavel Pertsev 10 năm trước cách đây
mục cha
commit
e52d140d6e
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      gruvbox_256palette.sh

+ 2 - 4
gruvbox_256palette.sh

@@ -76,10 +76,8 @@ if [ "${TERM%%-*}" = "screen" ]; then
 		printf "\033P\033]4;66;rgb:42/7b/58\007\033\\"
 		printf "\033P\033]4;130;rgb:af/3a/03\007\033\\"
 	fi
-else
-	if [ "$TERM" = "linux" ] || [ "$TERM" = "vt100" ] || [ "$TERM" = "vt220" ]; then
-		exit 1
-	fi
+
+elif [ "$TERM" != "linux" ] && [ "$TERM" != "vt100" ] && [ "$TERM" != "vt220" ]; then
 
 	printf "\033]4;236;rgb:32/30/2f\033\\"
 	printf "\033]4;234;rgb:1d/20/21\033\\"