lilalo
diff l3bashrc @ 103:2a63b4505ff0
Выравниваем CSS после того как добавил навигационную панель
Но до счастья ещё далеко
Но до счастья ещё далеко
author | devi |
---|---|
date | Sat Jun 24 23:18:18 2006 +0300 (2006-06-24) |
parents | d28dda8ea18f |
children | 77f033a04361 |
line diff
1.1 --- a/l3bashrc Mon Feb 20 17:52:40 2006 +0200 1.2 +++ b/l3bashrc Sat Jun 24 23:18:18 2006 +0300 1.3 @@ -127,7 +127,7 @@ 1.4 1.5 l3_fix_prompt() 1.6 { 1.7 - export PS1='\[v2#\!#$?#$UID#$$#$(/bin/date +%s)#$PWD#\033[1024D\033[K\]'$PS1 1.8 + export PS1='\[$(l3_save_last_line)v2#\!#$?#$UID#$$#$(/bin/date +%s)#$PWD#\033[1024D\033[K\]'$PS1 1.9 } 1.10 1.11 _l3_tamper_editors() 1.12 @@ -205,3 +205,20 @@ 1.13 } >&2 1.14 fi 1.15 } 1.16 + 1.17 +# Append lines from "$@" files to the end of the shell history 1.18 +hist_append () 1.19 +{ 1.20 + eval $(cat "$@" | sed 's/"/\\\\"/g' | while read line; do echo history -s \"$line\"\;; done); 1.21 +} 1.22 + 1.23 +l3_save_last_line () 1.24 +{ 1.25 + ( 1.26 + echo '<cline>' 1.27 + history 1 | sed 's/&/&/; s/</\</g; s/>/\>/g' 1.28 + echo '</cline>' 1.29 + ) >> $L3_HOME/$L3_SESSION_ID.info 1.30 +} 1.31 + 1.32 +