lilalo
changeset 16:37d701f903ec
Приглашение перенесено и поставлено перед if
author | devi |
---|---|
date | Thu Jun 16 11:44:38 2005 +0300 (2005-06-16) |
parents | 0ea58237c280 |
children | 05d496f33d76 |
files | lm-install |
line diff
1.1 --- a/lm-install Fri Jun 10 19:35:48 2005 +0300 1.2 +++ b/lm-install Thu Jun 16 11:44:38 2005 +0300 1.3 @@ -74,19 +74,22 @@ 1.4 this_term=`w | grep "${TTY##/dev/}" | awk '{print $8;}'` 1.5 # freeBSD: 1.6 this_term=`w | grep "${TTY##/dev/tty}" | awk '{print $6;}'` 1.7 + 1.8 + 1.9 + LMHOME=~/.labmaker 1.10 + mkdir -p ${LMHOME} 1.11 + flush="-f" #linux 1.12 + flush="-t 0" #freebsd 1.13 + export PS1='\[` a="$?"; 1.14 + HIDDEN=$([ "$a" = 0 ] || echo -n ^"$a")$(echo -n _${UID}_)$(echo -n _$$_)$(date\ 1.15 + +"%j$(cat ~/.labmaker/lab 2>/dev/null) %H:%M:%S"); 1.16 + echo $HIDDEN`\033[50D\033[K\][\u@\h:\W]\$ ' 1.17 + 1.18 if [ -n "$this_term" ] && echo $this_term | grep -qv script 1.19 then 1.20 - LMHOME=~/.labmaker 1.21 - mkdir -p ${LMHOME} 1.22 - flush="-f" #linux 1.23 - flush="-t 0" #freebsd 1.24 - export PS1='\[` a="$?"; 1.25 - HIDDEN=$([ "$a" = 0 ] || echo -n ^"$a")$(echo -n _${UID}_)$(echo -n _$$_)$(date\ 1.26 - +"%j$(cat ~/.labmaker/lab 2>/dev/null) %H:%M:%S"); 1.27 - echo $HIDDEN`\033[50D\033[K\][\u@\h:\W]\$ ' 1.28 exec script $flush -q $LMHOME/${TTY##*/}-$$.script 1.29 fi 1.30 - # LabMaker:END 1.31 + # LabMaker:END 1.32 LM_bash_profile 1.33 cat $temp_file > $profile 1.34 rm $temp_file