- function setroot
- {
- web_root=$1
- PS1='${debian_chroot:+($debian_chroot)}\u@\h:$(echo \w| sed s@'$web_root'@@g)\$ \[\033k\]$(basename "\w")\[\033\\\]'
- export PS1
- alias ca="cd $PWD"
- }
- # usage: setroot $PWD
- # this can be adapted
Author: Sav | Language: text |
Description: No description (v2) | Timestamp: 2011-07-08 21:49:45 +0000 |
View raw paste | Parent paste by: Not specified | Reply |
View raw paste | Parent paste by: Not specified | Reply |