Commits

Wes Alvaro  committed f50b100

Minor changes for bash compatibility

  • Participants
  • Parent commits 7c39508

Comments (0)

Files changed (1)

 
 PATH=$PATH:/sbin/ # For ipconfig
 
+title(){
+    echo -ne "\ek"$@"\e\\"
+}
 precmd () {
   if [[ "$TERM" = "screen" ]]; then
     local pwd=`basename $PWD`
-    echo -ne "\ek"$pwd"\e\\"
+    title $pwd
   fi
 }
 preexec () {
     if [[ ${#cmd} -ge 15 ]]; then
       CMD="${${(z)cmd}[1]}"
     fi
-    echo -ne "\ek${cmd}\e\\"
+    title $cmd
   fi
 }
 myScreen() {
       echo "I will not automatically nest you in screens: ($WINDOW:$STY@$origin)";
     fi
   else
+    title `hostname -s`
     echo "You are on screen $WINDOW! ";
   fi
-  local rm=`rm -f $screenHere $screenOn .screenResut`
+  local rm=`rm -f $screenHere $screenOn .screenResult`
 }
 autoScreenMe
 alias ms='myScreen'