[vte/vte-next] prompt: Simplify test (cherry picked from commit 17841f18c480c7198463b2969e9fe178a87e6632)



commit f2431855df903e6f56eabfd1e26044e9800a48d6
Author: Christian Persch <chpe gnome org>
Date:   Mon May 13 19:58:51 2013 +0200

    prompt: Simplify test
    (cherry picked from commit 17841f18c480c7198463b2969e9fe178a87e6632)

 src/vte.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.sh b/src/vte.sh
index ba43c42..d31ab82 100644
--- a/src/vte.sh
+++ b/src/vte.sh
@@ -22,7 +22,7 @@
 [[ $- == *i* ]] || return
 
 # Not running under vte?
-[ -n "$PS1" -a "${VTE_VERSION:-0}" -ge 3405 ] || return
+[ "${VTE_VERSION:-0}" -ge 3405 ] || return
 
 __vte_urlencode() (
   # This is important to make sure string manipulation is handled


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]