lilalo
diff l3bashrc @ 107:54fbf2041159
l3cd
author | devi |
---|---|
date | Fri Aug 04 18:06:09 2006 +0300 (2006-08-04) |
parents | 09ed722f2759 |
children | 3cd466f35ad6 |
line diff
1.1 --- a/l3bashrc Tue Jun 27 18:00:09 2006 +0300 1.2 +++ b/l3bashrc Fri Aug 04 18:06:09 2006 +0300 1.3 @@ -222,4 +222,24 @@ 1.4 ) >> $L3_HOME/$L3_SESSION_ID.info 1.5 } 1.6 1.7 +l3 () 1.8 +{ 1.9 + case "$1" in 1.10 + on) 1.11 + echo switching on 1.12 + ;; 1.13 + off) 1.14 + echo switcing off 1.15 + ;; 1.16 + cd) 1.17 + echo l3cd="$2" > ~/.l3rc 1.18 + ;; 1.19 + pwd) 1.20 + grep ^l3cd= ~/.l3rc | sed s/[^=]*=// 1.21 + ;; 1.22 + *) 1.23 + echo /usr/local/bin/l3 1.24 + ;; 1.25 + esac 1.26 +} 1.27