OSDN Git Service

[fix] : Fixed powerline.
authorhayao <shun819.mail@gmail.com>
Tue, 9 Jun 2020 12:17:15 +0000 (21:17 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 9 Jun 2020 12:17:15 +0000 (21:17 +0900)
channels/xfce/airootfs.any/etc/skel/.bashrc
channels/xfce/airootfs.any/etc/skel/.zshrc

index 308c1b5..6f6d2f4 100644 (file)
@@ -45,7 +45,7 @@ else
         PS1="$(powerline-go -error $?)"
     }
 
-    if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then
+    if [[ "$TERM" != "linux" ]]; then
         PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
     fi
 fi
\ No newline at end of file
index 9447fef..aaaeb46 100644 (file)
@@ -90,7 +90,7 @@ colors
 
 
 #-- PROMPT --#
-if [[ ${TERM} = linux ]]; then
+if [[ ${TERM} = "linux" ]]; then
     PROMPT='%B%F{red}%(?..%? )%f%b%B%F{red}%n%f%b@%m %B%40<..<%~%<< %b%# '
 else
     function powerline_precmd() {