From: Oleg Broytman Date: Wed, 2 Mar 2016 20:24:38 +0000 (+0300) Subject: .profile: use concatenation instead of `+=' for older shells X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d7faba863d07e11ff41a4bb7076ffe2b24f8b42e;p=dotfiles.git .profile: use concatenation instead of `+=' for older shells --- 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" ;; *)