From d7faba863d07e11ff41a4bb7076ffe2b24f8b42e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 2 Mar 2016 23:24:38 +0300 Subject: [PATCH] .profile: use concatenation instead of `+=' for older shells --- .profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.profile b/.profile index 4b7368a..d4b94b0 100644 --- a/.profile +++ b/.profile @@ -146,7 +146,7 @@ if [ -t 0 ] ; then OPS1="\[\033]0;\u@\h:\w\007\]" case "$TERM" in screen*) - OPS1+"\[\033k\u@\h:\w\033\\\]" # Set screen/tmux caption + OPS1=${OPS1}"\[\033k\u@\h:\w\033\\\]" # Set screen/tmux caption ;; esac ;; @@ -156,7 +156,7 @@ if [ -t 0 ] ; then ;; esac - OPS1+="\u@\h \W " + OPS1=${OPS1}"\u@\h \W " . "$ENV" ;; *) -- 2.39.2