]> git.phdru.name Git - dotfiles.git/blobdiff - .profile
.profile: use concatenation instead of `+=' for older shells
[dotfiles.git] / .profile
index 4b7368a84e5bdd4e0d67968ce39c689407083d2e..d4b94b089914a4392efded865f80d71a3d1609bc 100644 (file)
--- 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"
          ;;
       *)