Permalink
Browse files

MSYS detection was broken

  • Loading branch information...
1 parent c56642f commit a7567787530cbf606e6cfed2801cbffc2419872a @orefalo committed Oct 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 g2-prompt.sh
View
@@ -148,7 +148,7 @@ rawhex_len=${rawhex_len:-5}
fi
#################################################################### MARKERS
- if [[ "$LC_CTYPE $LC_ALL" = "*UTF*" && $TERM != "linux" ]]; then
+ if [[ "$LC_CTYPE $LC_ALL" = *UTF* && $TERM != "linux" ]]; then
elipses_marker=""
else
elipses_marker="..."
@@ -257,7 +257,7 @@ cwd_truncate() {
host=${HOSTNAME}
if [[ $short_hostname = "on" ]]; then
- if [[ "$(uname -s)" != MINGW* ]]; then
+ if [[ "$(uname -s)" = MINGW* ]]; then
host=$(hostname)
elif [[ "$(uname)" = CYGWIN* ]]; then
host=`hostname`

0 comments on commit a756778

Please sign in to comment.