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
  1. function setroot
  2. {
  3. web_root=$1
  4. PS1='${debian_chroot:+($debian_chroot)}\u@\h:$(echo \w| sed s@'$web_root'@@g)\$ \[\033k\]$(basename "\w")\[\033\\\]'
  5. export PS1
  6. alias ca="cd $PWD"
  7. }
  8. # usage: setroot $PWD
  9. # this can be adapted
View raw paste Parent paste by: Not specified Reply